Re: [R] Help for lattice. par(new=TRUE)

2011-01-28 Thread Deepayan Sarkar
On Fri, Jan 21, 2011 at 8:22 PM, Fabrice Tourre wrote: > Hi list, > I want to plot two plot in the same figure. I set par(new=TRUE). But > it does not work. > > library(lattice) > myPanel <- function(x,...) > { >       panel.histogram(x,alpha=0.4,...) >       ltext(0.4,1.5,paste("Mean=","0.05",dig

[R] Help for lattice. par(new=TRUE)

2011-01-21 Thread Fabrice Tourre
Hi list, I want to plot two plot in the same figure. I set par(new=TRUE). But it does not work. library(lattice) myPanel <- function(x,...) { panel.histogram(x,alpha=0.4,...) ltext(0.4,1.5,paste("Mean=","0.05",digit=2)),cex=0.8) ltext(0.8,1.5,paste("s.d.=","0.06",digit=2)),cex