Bio-Tools-CodonOptTable
view release on metacpan or search on metacpan
lib/Bio/Tools/CodonOptTable.pm view on Meta::CPAN
'Graph Representing : Relative Synonymous Codons Uses and Relative Adaptiveness of a Codon for '
. $self->display_id,
y_label => 'RSCU and RAC values', #y-axis label
y_max_value => $y_axis_max, #the max value of the y-axis
y_min_value => 0
, #the min value of y-axis, note set below 0 if negative values are required
y_tick_number => 20, #y-axis scale increment
y_label_skip => 1, #label every other y-axis marker
box_axis => 0, #do not draw border around graph
line_width => 2, #width of lines
legend_spacing => 5, #spacing between legend elements
legend_placement => 'RC', #put legend to the centre right of chart
dclrs => \@category_colours
, #reference to array of category colours for each line
bgclr => 'red',
long_ticks => 0,
tick_length => 3,
x_labels_vertical => 1,
) || die "\nFailed to create line graph: $bar_graph->error()";
$bar_graph->set_legend( 'RSCU Value', 'RAC Value' );
my $plot = $bar_graph->plot( \@bar_graph_table );
my $line_file = $output_file;
open( GPH, ">$line_file" )
|| die("\nFailed to save graph to file: $line_file. $!");
binmode(GPH);
print GPH $plot->gif();
close(GPH);
}
( run in 1.022 second using v1.01-cache-2.11-cpan-49f99fa48dc )