[R] Question about writing some code

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Aug 20 11:22:49 CEST 2007



squall44 wrote:
> Just a short question:
> Why does this work:
> 
> x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2)
> F26<-boxplot(x,
>         add=FALSE,
>         horizontal=TRUE,
>         main="Figur 2.6 Boxplot",
>         axes=FALSE)


boxplot returns some information on the boxplot, but the result cannot 
be plotted by boxplot itself. You can use bxp() to do so.

Uwe Ligges



> ...but this doesn't...
> 
> x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2)
> F26 <- boxplot(x)
> plot(F26,
>         add=FALSE,
>         horizontal=TRUE,
>         main="Figur 2.6 Boxplot",
>         axes=FALSE)
> 
> Thanks for any help,
> Squall44



More information about the R-help mailing list