Dear all,
  I have a few questions regarding the boxplot output from the
"geom_boxplot" function.
Take as an example the output of the below:
library(ggplot2)
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(aes(fill = factor(am)))

Here are my questions:

  1. How can I define the xlab and ylab myself?
 Also I would like to remove "factor(am)"
line on the right side.

  2. How can I define the colors of the boxplots myself.

  3. Is it possible to change ylim also?

I looked at the R help document and did not see how to do these.

Thanks so much!
    Hannah

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to