View source: R/functions_plot.r
Add a new layer of points on top of an existing plot with output from the min_cut function
1 |
x |
a matrix created by the min_cut function |
p |
is a ggplot object, preferably from one of the mapping functions in soc.ca |
label |
if TRUE the labels of points will be shown |
... |
further arguments are passed on to geom_path, geom_point and geom_text |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.