Learn R Programming

loon (version 1.4.1)

l_aspect: Query the aspect ratio of a plot

Description

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.

Usage

l_aspect(widget)

Value

aspect ratio

Arguments

widget

widget path as a string or as an object handle

Examples

Run this code
if (FALSE) {
p <- with(iris, l_plot(Sepal.Length ~ Sepal.Width, color=Species))

l_aspect(p)
l_aspect(p) <- 1
}

Run the code above in your browser using DataLab