Troubleshooting Labels on Boxplots in R

  • Thread starter Thread starter caitstyle
  • Start date Start date
  • Tags Tags
    Troubleshooting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
caitstyle
Messages
4
Reaction score
0
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
 
Physics news on Phys.org
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.