| 1 | package Chart::GGPlot::Guide; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | # ABSTRACT: Role for guide | ||||||||||||||
| 4 | |||||||||||||||
| 5 | 2 | ▶ | use Chart::GGPlot::Setup; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | 2 | ▶ | use Function::Parameters qw(classmethod); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | 2 | ▶ | use namespace::autoclean; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | |||||||||||||||
| 9 | 2 | our $VERSION = '0.002003'; # VERSION | |||||||||||||
| 10 | |||||||||||||||
| 11 | 2 | ▶ | use parent qw(Chart::GGPlot::Params); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | |||||||||||||||
| 13 | 2 | ▶ | use Types::Standard qw(Str); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | |||||||||||||||
| 15 | 2 | ▶ | use Chart::GGPlot::Types qw(:all); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 16 | 2 | ▶ | use Chart::GGPlot::Util qw(:all); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 17 | |||||||||||||||
| 18 | |||||||||||||||
| 19 | 2 | for my $attr (qw(title key reverse)) { | |||||||||||||
| 20 | 2 | ▶ | no strict 'refs'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 21 | 0 | ▶ | *{$attr} = sub { $_[0]->at($attr); } | ||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||
| 22 | 6 | } | |||||||||||||
| 23 | |||||||||||||||
| 24 | # undef means "any" | ||||||||||||||
| 25 | 0 | ▶ | classmethod available_aes () { undef; } | ||||||||||||
|
Subroutine
available_aes: not called CC=3 SCAR=22.6
Pod
undocumented
Branch: 2 branches
| |||||||||||||||
| 26 | |||||||||||||||
| 27 | 0 | ▶ | method train ($scale, $aesthetics=undef) { | ||||||||||||
|
Subroutine
train: not called CC=3 SCAR=24.8
Pod
undocumented
Branch: 2 branches
| |||||||||||||||
| 28 | 0 | return $self; | |||||||||||||
| 29 | 2 | } | |||||||||||||
| 30 | |||||||||||||||
| 31 | 0 | ▶ | classmethod _reverse_df ($df) { | ||||||||||||
|
Subroutine
_reverse_df: not called CC=3 SCAR=24.8
Branch: 2 branches
| |||||||||||||||
| 32 | 0 | return $df->select_rows( [ reverse( 0 .. $df->nrow - 1 ) ] ); | |||||||||||||
| 33 | 2 | } | |||||||||||||
| 34 | |||||||||||||||
| 35 | 2 | 1; | |||||||||||||
| 36 | |||||||||||||||
| 37 | __END__ | ||||||||||||||