Antje <niederlein-rstat <at> yahoo.de> writes:

> I get a strange behaviour of a boxplot with the following code. There seems 
> to 
> be a problem with the xlim-parameter. Did I do anything wrong? What else can 
> I 
> do to force the boxplot to have a defined x-range?
> 
> x <- rnorm(100)
> boxplot(x, notch=TRUE, xlab=parameter, xlim <- c(-4,4), horizontal = TRUE)
> 

   This should be just fine if you say 

boxplot(x, notch=TRUE, xlab=parameter, xlim=c(-4,4), horizontal = TRUE)

instead.

<- is only for assignment.  You must use = for setting arguments
to a function.

  Ben Bolker

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to