NAME
Chart::GGPlot::Geom::Functions - Function interface for Chart::GGPlot::Geom
VERSION
version 0.0002_01
DESCRIPTION
This module provides the geom_*
functions supported by this Chart-GGPlot library. When used standalone, each geom_*
function generates a Chart::GGPlot::Layer object. Also the functions can be used as Chart::GGPlot::Plot methods, to add layers into the plot object.
FUNCTIONS
geom_path
geom_path(:$mapping = undef, :$data = undef, :$stat = 'identity',
:$position = 'identity', :$na_rm = false, :$show_legend = 'auto',
:$inherit_aes = true,
%rest)
The "path" geom connects the observations in the order in which they appear in the data.
geom_line
geom_line(:$mapping = undef, :$data = undef, :$stat = 'identity',
:$position = 'identity', :$na_rm = false, :$show_legend = 'auto', :$inherit_aes = true,
%rest)
The "line" geom connects the observations in the order of the variable on the x axis.
geom_point
geom_point(:$mapping = undef, :$data = undef, :$stat = 'identity',
:$position = 'identity', :$na_rm = false, :$show_legend = 'auto',
:$inherit_aes = true, %rest)
The "point" geom is used to create scatterplots. The scatterplot is most useful for displaying the relationship between two continuous variables. A bubblechart is a scatterplot with a third variable mapped to the size of points.
geom_bar
geom_bar(:$mapping = undef, :$data = undef, :$stat = 'count',
:$position = 'stack', :$width = undef,
:$na_rm = false, :$show_legend = 'auto', :$inherit_aes = true,
%rest)
The "bar" geom makes the height bar proportional to the number of cases in each group (or if the weight
aesthetic is supplied, the sum of the weights
). It uses stat_count()
by default: it counts the number of cases at each x position.
geom_histogram
geom_histogram(:$data = undef, :$mapping = undef, :$stat = "bin",
:$position = "stack", :$binwidth = undef, :$bins = undef,
:$na_rm = false, :$show_legend = 'auto', :$inherit_aes = true,
%rest)
Visualise the distribution of a single continuous variable by dividing the x axis into bins and counting the number of observations in each bin. This "histogram" geom displays the counts with bars.
SEE ALSO
Chart::GGPlot::Layer, Chart::GGPlot::Plot
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.