Hello,

I am branching out to xyplot for the first time, and I want to layer
several "complex" xyplots. I have tried using panel functions, but so far I
lose all complexity from the scatterplot. I would like to have the
following things in the plot:


1) A plot of observation vs. modeled individual prediction, by treatment
arm, with each subjects' points connected by lines.

xyplot(Observation,IPrediction,groups=TreatmentArm,type="b",col=c(1,2,3),cex=0.7)


2) Over the former, I would like to add loess smoothers.

I am able to do this in the former with "type=c("b","smooth"), but I would
like to differentiate the smoothers from the rest of the plot with thicker
line widths, and possibly colors.


3) Also over the former, I would like to add a simple abline(0,1).

I can add this, but not also the loess and treatment arm differences with
"panel=function(x,y){}, but cannot figure out to keep all the former
complexity.



Basically, I am trying to recreated the four basic diagnostic plots from
"xpose4", but adding color for treatment differences.

Any help would be appreciated!

        [[alternative HTML version deleted]]

______________________________________________
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