Wolfram Fischer
2004-Feb-10 17:27 UTC
[R] lattice: scales beginning at zero with relation="free"
Is there an easy way to have scales beginning with zero and ending with the local maximum data value of each panel when using a lattice function with ``scales=list( relation="free" )''? Thanks. Wolfram
Deepayan Sarkar
2004-Feb-10 19:47 UTC
[R] lattice: scales beginning at zero with relation="free"
On Tuesday 10 February 2004 11:27, Wolfram Fischer wrote:> Is there an easy way to have scales beginning with zero and > ending with the local maximum data value of each panel > when using a lattice function with ``scales=list( relation="free" )''?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
Maybe Matching Threads
- lattice: defining an own function using args for "formula" and "groups"
- inverse function of order()
- sub() of matrix returns a vector and not a matrix
- Why the factor levels returned by cut() are not ordered?
- How to change letters after space into capital letters