summarise_plot

0th

Percentile

Summarise built plot objects

These functions provide summarised information about built ggplot objects.

Usage
summarise_layout(p)

summarise_coord(p)

summarise_layers(p)

Arguments
p

A ggplot_built object.

Aliases
  • summarise_plot
  • summarise_layout
  • summarise_coord
  • summarise_layers
Examples
# NOT RUN {
p <- ggplot(mpg, aes(displ, hwy)) + geom_point() + facet_wrap(~class)
b <- ggplot_build(p)

summarise_layout(b)
summarise_coord(b)
summarise_layers(b)

# }
Documentation reproduced from package ggplot2, version 3.0.0, License: GPL-2 | file LICENSE

Community examples

bnahayo at Apr 24, 2019 ggplot2 v3.1.1

//in case you dont have a local copy of the library ``` install.packages("ggplot2", repos="https://cran.r-project.org") ``` //load the library ``` library(ggplot2, lib.loc="C:/Users/**account**/Documents/R/win-library/3.5") ``` //instantiate the plot ``` plot <- ggplot(mpg, aes(displ, hwy, colour = class)) ``` //plot the plot ``` plot + geom_point() ``` //build plot for summerization ``` built_plot <- ggplot_build(plot) ``` ``` summarise_layout(built_plot) summarise_coord(build_plot) summarise_layers(build_plot) ```