Skip to contents

An Interactive Grammar of Graphics

Functions and additive clauses that extend the ggplot grammar of graphics to interactive visualization.

l_ggplot()
Automatically create a loon widget
linking()
Modify the linking component
hover()
Modify the hover component
selection()
Modify the selected component
active()
Modify the active component
zoom()
Zoom Plot Region
interactivity()
Modify the interactivity component
gg_pipe()
Pipe ggplot object

The loon <-> ggplot duality

The bridge – static ggplots to interactive loon plots and interactive loon plots to elegant ggplots. l_ggplots print() as loon plots and plot() as ggplots.

loon.ggplot()
loon.ggplot
l_ggplot()
Automatically create a loon widget
print(<l_ggplot>)
Explicitly draw plot
is.l_ggplot()
Reports whether x is a l_ggplot object

From loon plots to ggplots

loon.ggplot()
loon.ggplot
loon2ggplot()
Turn a loon widget to a ggplot object
g_getLocations()
get locations for ggmatrix
g_getPlots()
get ggplots

From ggplots to loon plots

loon.ggplot()
loon.ggplot
ggplot2loon()
ggplot to loon
get_activeGeomLayers()
active geom layers

Utilities

Some useful functions for the transformation

gg_pipe()
Pipe ggplot object
scaleBox()
Box scaling in 3D rotation
scale_multi()
Position scales for continuous data (x, y & z)
layout_coords()
layout matrix
get_scaledData()
scale data
is.CoordPolar()
Is polar coordinate system?
Cartesianxy2Polarxy()
Transform the x, y positions from a Cartesian coordinate to a polar coordinate
loonLayer()
Transform geom layers to loon layers
l_getSubtitles()
Return the subtitles