Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more

#!/usr/bin/env perl
use 5.016;
use Chart::GGPlot qw(:all);
use boolean;
my $save_as;
GetOptions( 'o=s' => \$save_as );
my $mpg = mpg();
my $p = ggplot(
data => $mpg,
mapping => aes( x => 'class', y => 'hwy' )
)->geom_boxplot(fill => 'white', color => '#3366FF');
if (defined $save_as) {
$p->save($save_as);
} else {
$p->show();
}