plot.loon: Plot the current view of any loon plot in the current device.

plot.loonR Documentation

Plot the current view of any loon plot in the current device.

Description

This is a wrapper for grid.loon() to simplify the plotting of loon plots on any device. Frequent users are recommended to use grid.loon() for more control.

Usage

## S3 method for class 'loon'
plot(x, y = NULL, ...)

Arguments

x

the loon plot to be plotted on the current device

y

NULL, will be ignored.

...

parameters passed to loonGrob

Value

invisible()

See Also

loonGrob, grid.loon, l_export

Examples

if(interactive()) {
  loonPlot <- with(iris, l_plot(Sepal.Length, Sepal.Width))
  loonPlot['color'] <- iris$Species
  loonPlot['selected'] <- iris$Species == "versicolor"
  l_scaleto_selected(loonPlot)
  loonPlot['showGuides'] <- TRUE
  plot(loonPlot)
}


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