NAME
Chart::GGPlot::Aes - Aesthetic mappings
VERSION
version 0.0009
DESCRIPTION
This class inherits Chart::GGPlot::Params to accept various names of same concept, like color/colour/fg, fill/bg, etc. Unlike Chart::GGPlot::Params, this class has its object keys alphabetically sorted.
It is designed for holding aesthetics-specific data. It can usually be used in either of below two ways:
Created by the
aes()
function.For specifying how the aesthetics, like x/y variables (column names), colors, etc., are mapped to data in your data frame input to
ggplot()
.Used only for its key alias feature.
CLASS METHODS
check_aesthetics
check_aesthetics($aes, $n=undef)
Checks if all values in the $aes
object are of length $n
or 1
. Dies on check failure. $aes
can be either a Chart::GGPlot::Aes object or a data frame object. If $n
is not specified, it defaults to the max length of values (or columns) of $aes
.
METHODS
string
string()
SEE ALSO
Chart::GGPlot::Aes::Functions, Chart::GGPlot::Params
AUTHOR
Stephan Loyd <sloyd@cpan.org>
COPYRIGHT AND LICENSE
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.