Description Usage Arguments Value Examples
Create a layer of embedded subplots
1 2 3 |
mapping |
An aesthetic mapping, usually constructed with
|
width |
numeric or rel object. The width of each glyph. If width is
numeric, the glyph will be drawn with a width equal to width units on the x
axis. If width is of class |
height |
numeric or rel object. The height of each glyph. Height behaves the same way as width, but applies to the y dimension. |
data |
The dataframe the layer should map to. geom_subplot inherits the
global dataframe defined in |
x_scale |
function. The scaling to use for the x axis within each glyph.
If x_scale equals |
y_scale |
function. y_scale behaves the same as x_scale but controls the scales for the y axis within each glyph. |
position |
character. A string that specifies which position adjustment should be used. geom_subplot only recognizes "identity" and "merge". |
reference |
function. Function used to create reference objects for
glyphs. If NULL, no reference objects are used. Reference objects are plotted
on a layer beneath the glyphs. They provide a consistent frame of reference
to aid comparisons between the glyphs. Functions that create reference
objects include |
ply.aes |
logical. If TRUE (default) aesthetics are calculated
separately for each group, as with |
.ref |
internal argument used for plotting reference objects. |
an object of class sp_layer
1 2 3 4 5 6 7 | ## Not run: ggplot(nasa) +
map_americas +
geom_subplot(aes(long, lat, group = id,
subplot = geom_point(aes(surftemp, temperature), size = 1/4))) +
coord_map()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.