l_setAspect: Set the aspect ratio of a plot

View source: R/l_aspect.R

l_setAspectR Documentation

Set 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_setAspect(widget, aspect, x, y)

Arguments

widget

widget path as a string or as an object handle

aspect

aspect ratio, optional, if omitted then the x and y arguments have to be specified.

x

optional, if the aspect argument is missing then x and y can be specified and the aspect ratio is calculted usding y/x.

y

see description for x argument above

Examples

## Not run: 
p <- with(iris, l_plot(Sepal.Length ~ Sepal.Width, color=Species))

l_aspect(p)
l_setAspect(p, x = 1, y = 2)

## End(Not run)

loon documentation built on July 9, 2023, 5:48 p.m.