[R] Data scaled by lattice::stripplot

Pascal Oettli kridox at ymail.com
Fri Jun 29 08:45:05 CEST 2012


Hello,

It works with lattice::xyplot.

Best Regards


Le 29/06/2012 13:06, meonline a écrit :
> For the following example,
>
>> library(lattice)
>> df<-data.frame(i=1:100,p=runif(100),id=rep(c('a','b'),100))
>> summary(df[,'p'])
>     Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
> 0.01165 0.33580 0.57520 0.53290 0.74540 0.98610
>> stripplot(p~i|id,df)
>
> The plot that is output is as expected with the exception that the values
> are scaled by a factor of 100 in the plot (and the yaxis has too many
> labels) -- see attached screenshot.
>
> I'm running R.2.10 under Ubuntu 10.04.
>
> Why does this happen and how do I get the stripplot to plot the values as
> they are in the data (from 0 to 1)?
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Data-scaled-by-lattice-stripplot-tp4634809.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list