View source: R/population_stom.R
plotdif | R Documentation |
Plot difference between two diet data set.
plotdif(
d1,
d2,
relative = TRUE,
show_plot = TRUE,
cut_pred_size = c(1, 10),
cut_prey_size = c(1, 10),
addTitle = FALSE,
tAngle = 90,
Colours = c("green", "red", "blue"),
refac_prey = FALSE,
maxDif = 5,
size_NA = 4,
byVar = c("year-quarter", "year", "quarter", "none")
)
d1 |
Diet data set of class STOMdiet. |
d2 |
Diet data set of class STOMdiet. |
relative |
Logical, relative weight difference is used if TRUE, else absolute weight difference. |
show_plot |
Show the resulting graphs on screen (or save the results for later processing). |
cut_pred_size |
From to in substring of predator size. |
cut_prey_size |
From to in substring of prey size. |
addTitle |
Add predator name on top of the plot. |
tAngle |
Angle X-axis text. |
Colours |
Colours for positive and negative difference (d1-d2), and colour for missing in d1 or d2. |
refac_prey |
Reorder preys. |
maxDif |
maximum difference to be shown. |
size_NA |
Size of missing observation. |
byVar |
Make individual plots by combinations of 'year-quarter','year' or 'quarter' or lump all data together ('none'). |
nothing (if show_plot=TRUE) or a list of plots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.