Skip to content
Prev 44010 / 398525 Next

lattice: scales beginning at zero with relation="free"

On Tuesday 10 February 2004 11:27, Wolfram Fischer wrote:

            
Add 

prepanel = function(x, y, ...) list(xlim = c(0, max(x)), ylim = c(0, max(y)))

If you want this for only one of the axes, just leave out the other component. 
If you want to suppress the automatic extension of the limits, you need to 
add axs = "i" in the appropriate component of scales.

Deepayan