Learn R Programming

soc.ca (version 0.8.0)

add.count: Add a new layer of points on top of an existing plot with output from the min_cut function

Description

Add a new layer of points on top of an existing plot with output from the min_cut function

Usage

add.count(x, p, label = TRUE, ...)

Arguments

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