[R] Boxplot plot range

Andy Bunn abunn at whrc.org
Tue Nov 9 20:52:59 CET 2004


How about using ylim?

foo <- rnorm(100, 0, 1)
boxplot(foo, ylim = c(-5, 5))

HTH, Andy

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Scott Rifkin
> Sent: Tuesday, November 09, 2004 2:43 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Boxplot plot range
> 
> 
> 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.
> 
> 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