get_plot_data: get_plot_data

View source: R/utilities.R

get_plot_dataR Documentation

get_plot_data

Description

extract data from a 'gg' plot

Usage

get_plot_data(plot, var = NULL, layer = NULL)

Arguments

plot

a 'gg' plot object

var

variables to be extracted

layer

specific layer to extract the data

Value

a data frame of selected variables

Author(s)

Guangchuang Yu


ggfun documentation built on Oct. 30, 2024, 9:13 a.m.