ggplot_add: Add custom objects to ggplot

View source: R/plot-construction.R

ggplot_addR Documentation

Add custom objects to ggplot

Description

This generic allows you to add your own methods for adding custom objects to a ggplot with +.gg.

Usage

ggplot_add(object, plot, object_name)

Arguments

object

An object to add to the plot

plot

The ggplot object to add object to

object_name

The name of the object to add

Value

A modified ggplot object


tidyverse/ggplot2 documentation built on April 21, 2024, 11:55 a.m.