geom_subplot(mapping, width = rel(0.95), height = rel(0.95), data = waiver(), x_scale = identity, y_scale = identity, position = "identity", reference = NULL, ply.aes = TRUE, .ref = FALSE)
aes
. This mapping determines where in the major x and
y axes each glyph will be position. Only x, y, group, and subplot aesthetics
will be used. All other aesthetics will be ignored - consider placing them in
the subplot's mapping instead.rel
, glyph will
attempt to assign an inuitive width based on the number of total glyphs and
their placement within the plot. The width can be scaled relative to this
intuitive width by changing the value of the rel object.ggplot
.identity
(default), the x limits within each
glyph will correspond to the range of x across all glyphs. This aids
comparison because each glyph will use the same scale. If x_scale equals
free
, each glyph will use its own x scale. The limits of this
scale will be set to the range of x values in that glyph.ref_box
, ref_hline
,
and ref_vline
.ply_aes
. If FALSE aesthetics
are calculated based on entire data set for the layer.## 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)
Run the code above in your browser using DataLab