Learn R Programming

ggplot2 (version 3.0.0)

summarise_plot: Summarise built plot objects

Description

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.

Examples

Run this code
# 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)

# }

Run the code above in your browser using DataLab