Skip to contents

S3 method to add netify_label_repel objects to ggplot objects. This method is called automatically when using the + operator with a netify_label_repel object.

Usage

# S3 method for class 'netify_label_repel'
ggplot_add(object, plot, object_name)

Arguments

object

A netify_label_repel object created by netify_label_repel

plot

A ggplot object to which the label_repel layer will be added

object_name

The name of the object being added (used internally by ggplot2)

Value

A ggplot object with the label_repel layer added