Explore the Innards of 'ggplot2' Objects

Extensions to 'ggplot2' providing low-level debug tools: statistics and geometries reporting data passed to compute_group() and compute_panel() functions and to geometries. Layer manipulation: functions for deletion, insertion, extraction and reordering of layers of "ggplot" objects. Data manipulation: function for deletion of unused variables from the data object embedded in "ggplot" objects.


Package 'gginnards' (Explore the innards of 'ggplot2') is a set of extensions to R package 'ggplot2' (>= 2.3.0) useful when learning how to write extensions and when debugging newly defined stats and geoms.

Statistics and geometries that echo their data input to the R console and/or plot aim at easing debugging during development of new geoms and statistics (or learning how ggplot layers work).

A set of functions facilitates the manipulation of layers in ggplot objects, allowing deletion of any existing layer, insertion of new layers at any position, and reordering of the existing layers.

A function to drop unused variables from the data object embedded in gg and ggplot objects serves as an additional example of a manipulation that may be useful when dealing with very large datasets.

This package was born when several functions were removed from package 'ggpmisc'. These functions are meant mainly to be used for debugging and learning how ggplot internals works while the balance of 'ggpmisc' are functions for everyday plotting.

Please, see the web site r4photobiology for details and update notices, and the docs site.

The current release of 'gginnards' is available through CRAN for R (>= 3.4.0).

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

News

gginnards 0.0.1 (2018-07-05)

Methods and functions originally part of 'ggpmisc' but removed in the update to 'ggpmisc' 0.3.0 are included in this new package.

  • Add new function drop_vars() to automatically drop from the data object embedded in "gg" "ggplot" objects the variables neither mapped to aesthetics nor used for faceting.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gginnards")

0.0.2 by Pedro J. Aphalo, a month ago


https://www.r4photobiology.info, https://bitbucket.org/aphalo/gginnards


Report a bug at https://bitbucket.org/aphalo/gginnards/issues


Browse source code at https://github.com/cran/gginnards


Authors: Pedro J. Aphalo [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports utils, methods, rlang, stringr, magrittr, tibble

Depends on ggplot2

Suggests dplyr, knitr, rmarkdown, pryr


See at CRAN