- COPYRIGHT AND LICENSE
Chart::GGPlot::Scale - The role for scale
This module is a Moose role for "scale".
For users of Chart::GGPlot you would mostly want to look at Chart::GGPlot::Scale::Functions instead.
The name of the aesthetics that this scale works with.
The name of the scale.
A palette function that when called with a single integer argument (the number of levels in the scale) returns the values that they should take.
A numeric vector of length two providing limits of the scale.
Used as axis or legend title. If
undef, the default, it's taken from the first mapping used for that aesthetic. If
, the legend title will be omitted.
for no breaks.
undeffor default breaks computed by the tranformation object.
a numeric vector of positions.
a function that takes the limits as input and returns breaks.
for no labels.
undeffor default labels computed by the tranformation object.
a string vector of labels (must be same of length as
a function that takes the breaks as input and returns labels.
Missing values will be replaced with this value.
Either the name of a transformation object, or the object itself. Built-in transformations include "asn", "atanh", "exp", "identity", "identity", "log", "log10", "log1p", etc. See Chart::GGPlot::Trans for details.
A function used to create a guide or its name.
The position of the axis. Possible values are
Train scale from a dataframe. Adjust range of the scale according to column data.
Reset scale, untrain ranges.
Returns an associative arrayref of transformed variables and their values.
map_to_limits() on each of the scale's aesthetics. Returns an associative arrayref which maps aesthetics to processed column data.
Maps a piddle of data to the scale's limits. Returns a piddle of processed column data.
Stephan Loyd <firstname.lastname@example.org>
This software is copyright (c) 2019 by Stephan Loyd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.