These functions provide summarised information about built ggplot objects.
1 2 3 4 5
A ggplot_built object.
There are three types of summary that can be obtained: A summary of the plot layout, a summary of the plot coord, and a summary of plot layers.
summarise_layout() returns a table that provides information about
the plot panel(s) in the built plot. The table has the following columns:
A factor indicating the individual plot panels.
Row number in the grid of panels.
Column number in the grid of panels.
A list of lists. For each panel, the respective list provides the variables and their values that specify the panel.
The minimum and maximum values of the variable mapped to the x aesthetic, in transformed coordinates.
The minimum and maximum values of the variable mapped to the y aesthetic, in transformed coordinates.
The scale object applied to the x aesthetic.
The scale object applied to the y aesthetic.
Importantly, the values for
are determined by the variables that are mapped to
y in the
So even if a coord changes how x and y are shown in the final plot (as is the case
coord_polar()), these changes have no effect on the results
summarise_coord() returns information about the log base for
coordinates that are log-transformed in
coord_trans(), and it also indicates
whether the coord has flipped the x and y axes.
summarise_layers() returns a table with a single column,
contains information about aesthetic mapping for each layer.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.