search for: thedatab

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

Did you mean: thedata
2012 Feb 22
2
Several densityplots in single figure
...ataA <- data.frame(x1=rnorm(100,1,1),x2=rnorm(100,3,1)) #create data thedataA.m<-melt(thedataA) densityplot(~value, thedataA.m, groups=variable,auto.key=list(columns=2), panel = function(x, y, ...) { panel.densityplot(x, ...) panel.abline(v=0) } ) thedataB <- data.frame(x1=rnorm(100,2,1),x2=rnorm(100,4,1)) #create data thedataB.m<-melt(thedataA) densityplot(~value, thedataB.m, groups=variable,auto.key=list(columns=2), panel = function(x, y, ...) { panel.densityplot(x, ...) panel.abline(v=0) } ) #####...