[R] Trellis plot in multiple display with grid

Deepayan Sarkar deepayan at stat.wisc.edu
Sun Mar 21 22:10:50 CET 2004


On Sunday 21 March 2004 13:23, Marco Chiarandini wrote:
> Thank you a lot! It works exactly as I desired.
>
> I dare to ask you another detail about Trellis multiple display
> plots. I would like to plot vertical lines in correspondence of the
> confidence intervals with the function below in order to make easier
> the visual comparison.
>
> Is this possible? I tried using the same logic proposed in the
> previous answer but it does not work.

This is from Hmisc, right ? I'm not too familiar with it. But I don't 
see the link with the previous example. What exactly is wrong with 
this ? Do you want to use a 'groups' argument ? 

>  Dotplot(as.factor(alg) ~ Cbind(y,lower,upper) | class,
>          data=all,subset=ss,
>            pch=3,method="bars",pch.bar=2,
>          # panel=function(x,y,...) {
>          #   panel.abline(v=y)
>          #   panel.superpose(x,y,...)
>          # },
>           scales = list(cex=1,
>              x=list(relation="free"),
>              y=list(alternating=c(1,1,1,1),
>                labels=c(levels(all$alg)),
>                at=c(1:nlevels(all$alg)))),
>            main=list(cex=1.3,label="Multiple comparisons with Tukey's
>                 confidence intervals"),
>            xlab=list(label="Percentage deviation from best
>                   
> results",cex=1.3,between.columns=5,distance=rep(2,60),size=3),
> ylab="",
>            aspect=0.6,as.table=TRUE);




More information about the R-help mailing list