Transforms the plot data. Many functions in this package require a specific
data format to align observations, scheme_data() helps reformat data frames
as needed.
Arguments
- data
A function to transform the plot data before rendering. Acceptable values include:
NULL: No action taken.waiver(): Inherits from the parent layout.A
functionor purrr-styleformula: Used to transform the plot data, which should accept a data frame and return a data frame. You can apply this after the parent layoutscheme_datafunction, using theinheritargument.
Use this hook to modify the data for all
geomsafter the layout is created (for matrix data, it has been melted to a long format data frame) but before rendering byggplot2. The returned data must be a data frame for ggplot.- inherit
A single boolean value indicates whether to apply the parent
scheme_datafirst and then apply the specifiedscheme_datafor the plot. Defaults toFALSE.
Details
Defaults will attempt to inherit from the parent layout if the actual data is
inherited from the parent layout, with one exception: align_dendro(), which
will not inherit the scheme_data by default.
