plot.loon | R Documentation |
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.
## S3 method for class 'loon'
plot(x, y = NULL, ...)
x |
the loon plot to be plotted on the current device |
y |
NULL, will be ignored. |
... |
parameters passed to |
invisible()
loonGrob
, grid.loon
, l_export
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.