auto.aspect {mining} | R Documentation |
Uses Cleveland's "banking to 45" rule to determine an optimal aspect ratio for a plot.
auto.aspect(x,y)
x,y |
numeric vectors of coordinates defining a continuous curve,
or multiple curves delimited by NA s. Alternatively, x
can be a list of two vectors. |
An aspect ratio, suitable for the asp
parameter to
plot
or plot.window
.
Tom Minka
data(lynx) plot(lynx) plot(lynx,asp=auto.aspect(time(lynx),lynx))