Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

R- question

  1. Jul 18, 2008 #1
    I've been trying to get labels on boxplot() but I keep on getting syntax errors (mainly from me trying to hack my way through). Anyone know how to get labels to show up on any plot in R?

    *i was plotting 2 box plots together, so I don't know if that complicates anything
  2. jcsd
  3. Aug 7, 2008 #2
    boxplot(data, xlab="X label", ylab="Y label", main="Title")

    if you want two on the same window use the par function.

    Hope this helps.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: R- question
  1. R or Matlab? (Replies: 4)

  2. R cheatsheet (Replies: 3)