Displaying 1 result from an estimated 1 matches for "overlay_trellis".
2008 Jan 15
4
Overlay plots from different data sets using the Lattice package
...uot;yellow", "green"))
names(data.frame.B) <- names(data.frame.A)
# stand alone plots
histogram(~ vals|factor.1*factor.2, data.frame.A, type = "density")
densityplot(~ vals | factor.1*factor.2, data.frame.B, plot.points = F)
# I found http://www.ats.ucla.edu/STAT/R/faq/overlay_trellis.htm
xyplot(write~read | ses.f, hsb2,
panel=function(x, y, subscripts){
panel.xyplot(x, y, pch=16)
panel.lmline(x, y, lty=4)
panel.xyplot(hsb2$science[subscripts], hsb2$math[subscripts], pch=3)
panel.lmline(hsb2$science[subscripts], hsb2$math[subscripts])
}, as.table=T, subscripts=T)
# but i...