How about using ylim?

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

HTH, Andy

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Scott Rifkin
> Sent: Tuesday, November 09, 2004 2:43 PM
> To: [EMAIL PROTECTED]
> 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
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to