| l_aspect<- | R Documentation |
The aspect ratio is defined by the ratio of the number of pixels for one data unit on the y axis and the number of pixels for one data unit on the x axes.
l_aspect(widget) <- value
widget |
widget path as a string or as an object handle |
value |
aspect ratio |
Changing the aspect ratio with l_aspect<- changes effectively
the zoomY state to obtain the desired aspect ratio. Note that the
aspect ratio in loon depends on the plot width, plot height and the states
zoomX, zoomY, deltaX, deltaY and
swapAxes. Hence, the aspect aspect ratio can not be set permanently
for a loon plot.
## Not run:
p <- with(iris, l_plot(Sepal.Length ~ Sepal.Width, color=Species))
l_aspect(p)
l_aspect(p) <- 1
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.