[R] Boxplot plot range

Liaw, Andy andy_liaw at merck.com
Tue Nov 9 20:50:40 CET 2004


> From: Scott Rifkin
> 
> How can I set the plot range for a boxplot using the 
> boxplot() function?
> 
> For example, the values in the boxplot go from -3 to 3 
> (outliers plotted), 
> but I'd like the y axis to go from -5 to 5.

as in:

 boxplot(rnorm(30), ylim=c(-5, 5))

?

Andy
 
> Thanks much
> Scott dot Rifkin at yale dot edu
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list