extract_ggplot | R Documentation |
takes an input function and grabs the processed data frame that ggplot employs to draw its plots
extract_ggplot(ggplot_obj)
ggplot_obj |
A ggplot object |
Note: reordering plot data to fit the ggplot wrangled data is (if there is a 1 to 1 mapping) plot_data[order(<facet.x>, <facet.y>, <grouping_variable>)]
OR
plot_data[order(PANEL, <grouping_variable>)]
useful for custom construction of layers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.