plotly (version 2.0.2)

ggplot_build2: ggplot build function with enhanced return

Description

This function builds on top of ggplot2::ggplot_build by Hadley Wickham and Winston Chang (http://ggplot2.org, https://github.com/hadley/ggplot2).

Usage

ggplot_build2(plot)

Arguments

plot
ggplot2 plot

Value

  • List with (data, panel, plot, prestats.data) where prestats.data is the data as it is prior to calculate_stats() call