plot_behavior | R Documentation |
This function plots the behavior returned by react()
.
plot_behavior(behavior, species = NULL, x_label = "Time", y_label = "Concentration", legend_name = "Species", geom_list = list("line"), save_file_name = NULL, show_legend = TRUE, show_x_label_name = TRUE, show_y_label_name = TRUE, y_origin_0 = FALSE, variable_line_type = FALSE)
behavior |
Behavior returned by |
species |
The vector with the species that should be plotted. If no one is specified, than all of them are plotted. |
x_label, y_label |
Label name of the x and y axis, respectively. The default are 'Time' and 'Concentration'. |
legend_name |
Name of the legend. The default is 'Species'. |
geom_list |
A list specifying what geoms from |
save_file_name |
Name file that the plot should be saved in.
Currently files with .pdf and .png were tested but
it should support any extension supported by
|
show_legend |
Show legend in the plot, Default value is |
show_x_label_name |
Show label name of x axis. Default value is |
show_y_label_name |
Show label name of y axis. Default value is |
y_origin_0 |
Set the origin of y axis to 0. Default value is
|
variable_line_type |
If TRUE, the line type will change for each species. This is usefull when multiple species has the same behavior. |
The object returned by ggplot()
, so you
can modify the plot or save it in a different way.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.