NAME

Chart::GGPlot::Aes::Functions - Function interface for aesthetics mappings

VERSION

version 0.002003

METHODS

aes_all

aes_all(@aes_names)

Given a array of aes names, create a set of identity mappings, that is like aes(x => 'x', y => 'y', ...).

FUNCTIONS

aes

aes(%aesthetics_mapping);

This function is not exactly same as Chart::GGPlot::Aes->new(). This function is specifically for creating aesthetics mapping which specifies the mapping from data to aesthetics. Returned aes object from this function is usually used for the mapping attr of Chart::GGPlot::Plot objects or Chart::GGPlot::Geom objects.

Values of %aesthetics_mapping need to be one of the following:

  • An Eval::Quosure object.

  • Anything else would be stringified and converted to an Eval::Quosure

    object with enviroment be caller of the aes() function.

SEE ALSO

Chart::GGPlot::Aes, Eval::Quosure

AUTHOR

Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019-2023 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.