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:--
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
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
3 matches
Mail list logo