Is there any function like par(new=T) for lattice. I want to plot a
histogram in percentages on the right hand side and also superimpose the
densityplot with its density scale on the lhs. so far I am only able to do
this
  histogram( temp[,2]~ temp[,1],nint=100,type="desnity",
               xlab = "Population Size",
               panel = function(x, ...) {
                   panel.histogram(x, ...)
                   panel.densityplot(x, col = "red", plot.points=F, lwd=2)
               } )

 If I change type="density" to type="percent" the scales for the
densityplot will be too low and all I see is a horizontal line at zero
(this is as expected) . However, I tried par(new=T) and nothing happens. I
want to be able to put percenstages on axis 2 and density values at axis
4.

Thank you

Jean,

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to