Description Usage Arguments Details Value Note Examples
Default (ggplot2) visualisations for Momocs objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
a Momocs object |
... |
additional parameters to feed geoms |
first |
|
centroid |
|
axes |
|
gg |
|
gg
is the base plotter.
gg0
prepare the canvas but let you pick your ggplot2::geoms
.
draw
add shapes on top of last plot
a ggplot
object
I call it "universal" as a reminder to provide a gg for each object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | b <- bot %>% pick(5)
gg(b)
# Let's add some geoms to
nice_plot <- gg0(b) +
ggplot2::geom_polygon(color="grey50", fill="red", alpha=0.25) +
ggplot2::geom_point(shape="circle plus")
nice_plot # print it
# you have all ggplot2 for free 8-)
# you do not have to ggplot2:: if you library(ggplot2) before
gorgeous_plot <- nice_plot + ggplot2::theme_minimal() +
ggplot2::labs(x="abscissa", y="ordinate", title="Drink responsibly")
# this is a plotting factory !
# gorgeous_plot %+% pick(bot, 12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.