get_plot_data {ggfun}R 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


[Package ggfun version 0.1.5 Index]