add.count: Add a new layer of points on top of an existing plot with...

View source: R/functions_plot.r

add.countR Documentation

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


Rsoc/soc.ca documentation built on March 7, 2024, 8:59 p.m.