Chart-GGPlot
view release on metacpan or search on metacpan
lib/Chart/GGPlot/Stat/Bin.pm view on Meta::CPAN
use Chart::GGPlot::Util qw(call_if_coderef seq_n stat);
use Chart::GGPlot::Util::Pod qw(layer_func_pod);
with qw(
Chart::GGPlot::Stat
);
has '+default_aes' => (
default => sub {
aes(
y => q{stat($count)},
weight => 1,
);
}
);
classmethod required_aes () { ['x'] }
classmethod _parameters () {
[
qw(
lib/Chart/GGPlot/Stat/Count.pm view on Meta::CPAN
use Chart::GGPlot::Util qw(resolution stat);
use Chart::GGPlot::Util::Pod qw(layer_func_pod);
with qw(
Chart::GGPlot::Stat
);
has '+default_aes' => (
default => sub {
aes(
y => q{stat($count)},
weight => 1,
);
}
);
classmethod required_aes() { ['x'] }
my $stat_count_pod = layer_func_pod(<<'EOT');
stat_count(:$mapping=undef, :$data=undef,
lib/Chart/GGPlot/Util.pm view on Meta::CPAN
}
if ($zero) {
$x = $x->glue(0, pdl(0))->uniq;
} else {
$x = $x->uniq;
}
return $x->qsort->diff->min;
}
fun stat($x) { $x }
use constant NO_GROUP => -1;
fun has_groups ($df) {
# If no group aesthetic is specified, all values of the group column
# equal to NO_GROUP. On the other hand, if a group aesthetic is
# specified, all values are different from NO_GROUP.
# undef is returned for 0-row data frames.
return undef if ( $df->nrow == 0 );
( run in 1.491 second using v1.01-cache-2.11-cpan-49f99fa48dc )