Chart::GGPlot::Built - A processed ggplot that can be rendered
version 0.0005
This class represents a processed Chart::GGPlot::Plot object that can be rendered. A Chart::GGPlot::Backend consumer generates an object of this class as an intermediate form during rendering a Chart::GGPlot::Plot object.
An arrayref of data frames, each for a layer's processed data that would later be used for rendering the plot.
An arrayref of data frames, each for a layer's processed data before stats are applied. Some geom implementation of some graphics backends, like Plotly's boxplot, may need this data.
A Chart::GGPlot::Layout object, which contains info about axis limits, breaks, etc.
The Chart::GGPlot::Plot object from which the Chart::GGPlot::Built object is created.
layer_data($i=0)
Helper function that returns the data associated with a given layer. $i is the index of layer.
data
$i
my $data = $ggplot->layer_data(0);
layer_prestats_data($i=0)
Similar to the layer_data method but is for prestats_data.
layer_data
prestats_data
layer_scales($i=0, $j=0)
Helper function that returns the scales associated with a given layer. Returns a hashref of x and y scales for the layer at row $i and column $j.
$j
Chart::GGPlot::Plot, Chart::GGPlot::Backend
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.