Skip to content

Displays a useful description of a ggplot object

Usage

# S3 method for class 'ggplot'
summary(object, ...)

Arguments

object

ggplot2 object to summarise

...

other arguments ignored (for compatibility with generic)

Examples

p <- ggplot(mtcars, aes(mpg, wt)) +
  geom_point()
summary(p)
#> data: mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb
#>   [32x11]
#> mapping:  x = ~mpg, y = ~wt
#> faceting: <ggproto object: Class FacetNull, Facet, gg>
#>     compute_layout: function
#>     draw_back: function
#>     draw_front: function
#>     draw_labels: function
#>     draw_panels: function
#>     finish_data: function
#>     init_scales: function
#>     map_data: function
#>     params: list
#>     setup_data: function
#>     setup_params: function
#>     shrink: TRUE
#>     train_scales: function
#>     vars: function
#>     super:  <ggproto object: Class FacetNull, Facet, gg>
#> -----------------------------------
#> geom_point: na.rm = FALSE
#> stat_identity: na.rm = FALSE
#> position_identity 
#>