[R] boxplot and xlim confusion?

Karin Lagesen karin.lagesen at medisin.uio.no
Thu Sep 29 15:28:14 CEST 2005


"Petr Pikal" <petr.pikal at precheza.cz> writes:

> Hi Karin
>
> I did not have seen any answer for your question yet so here is a 
> try.
>
> I gues you want the horizotal layout or your boxplot.
>
> boxplot(split(rnorm(30), rep(1:3, each=10)), horizontal =T, 
> names=letters[1:3])
>
> boxplot(split(rnorm(30), rep(1:3, each=10)), horizontal =T, 
> names=c(NA,"b",NA))

These look like the plots I want, yes. However, is there a way of
locking the x-axis? When I do these several times in a row, the range
of the x axis moves with the data being plotted. If I set xlim in the
boxplot command, it makes no difference what so ever.


> So this is closest what I could dig from your text.
>
> ***reproducible*** example would by good starting point what you want 
> and was not able to produce.

Sorry about that...:)

Karin
-- 
Karin Lagesen, PhD student
karin.lagesen at medisin.uio.no
http://www.cmbn.no/rognes/




More information about the R-help mailing list