Re: [R] Help making box plots in R when the x axis is a quantitative variable

2010-08-22 Thread Tal Galili
Hi FishLover, I believe this will answer your question: # getting some dummy data seed(10) y <- rnorm(100) x <- sample(c(1,2,5.5), 100 , T) boxplot(y~x) # won't work boxplot(y~x, at = c(1,2,5.5), xlim = c(0,6)) # will work Cheers, Tal Contact Details:--

Re: [R] Help making box plots in R when the x axis is a quantitative variable

2010-08-22 Thread RICHARD M. HEIBERGER
Please see this email https://stat.ethz.ch/pipermail/r-help/2009-March/190541.html On Sat, Aug 21, 2010 at 11:42 PM, FishLover wrote: > > Hello > > I'm trying to make boxplots > > However I'm having issues because my x axis is distance downstream on a > river. The boxplots function in r assum

[R] Help making box plots in R when the x axis is a quantitative variable

2010-08-21 Thread FishLover
Hello I'm trying to make boxplots However I'm having issues because my x axis is distance downstream on a river. The boxplots function in r assumes the x axis are categorical variables but I would like my boxplots to show true distance downstream just as it would if I used the plots function. H