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


YuLab-SMU/ggfun documentation built on April 14, 2025, 1:54 p.m.