Chart::GGPlot::Layer - Chart::GGPlot layer
version 0.0005
A layer is a combination of data, stat and geom with a potential position adjustment. Usually layers are created using geom_* or stat_* calls but it can also be created directly using this class.
geom_*
stat_*
The data to be displayed in this layer. If undef, the default, the data is inherited from the plot data as specified in the call to ggplot().
undef
ggplot()
Set of aesthetic mappings created by aes(). If specified and inherit_aes is true (the default), it's combined with the default mapping at the top level of the plot. You must supply this attribute if there no plot mapping.
aes()
inherit_aes
The geometric object to use display the data.
The statistical transformation to use on the data for this layer, as a string.
Position adjustment, either as a string, or the result of a call to a position adjust function.
If false, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification.
Additional parameters to the "geom" and "stat".
Should this layer be included in the legends?
undef, includes if any aesthetics are mapped.
A defined true scalar (non-Chart::GGPlot::Aes), never includes.
A defined false scalar (non-Chart::GGPlot::Aes), always includes.
A Chart::GGPlot::Aes object whose values are booleans, to finely
select the aesthetics to display.
Stephan Loyd <sloyd@cpan.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.
To install Chart::GGPlot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::GGPlot
CPAN shell
perl -MCPAN -e shell install Chart::GGPlot
For more information on module installation, please visit the detailed CPAN module installation guide.