search for: plotdensitymean

Displaying 1 result from an estimated 1 matches for "plotdensitymean".

Did you mean: plotdensitymeans
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
...lternatively, would another approach be better (i.e., is it possible to create a new panel function that does a panel.xyplot and panel.densityplot on slightly different data?). Thanks. Daniel ## BEGIN Example #OS: Mac OS X 10.5.5; R: 2.8.1; lattice 0.17-20 library(reshape) library(lattice) plotdensitymeans <- function(data,measure,factors=c('subject_group','task'), xlab="",xlim=NULL, ...) { # Create means by subject x.melted <- melt(data, id.var = append(factors,'subject_ID'), measure.var=measure,na.rm=T) formula.bysubject.cast <- pas...