Skip to contents

S3 method to add scale reset objects to ggplot objects. This method resets color, fill, alpha, and size scales using the ggnewscale package.

Usage

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

Arguments

object

A netify_scale_reset object created by reset_scales

plot

A ggplot object to which scale resets will be added

object_name

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

Value

A ggplot object with scale resets applied