tor_plot | R Documentation |
tor_plot()
provides a plot of the metabolic rate (M) values over the respective
ambient temperature (Ta).
tor_plot(
tor_obj = NULL,
plot_type = "base",
col_torp = "cornflowerblue",
col_euth = "coral3",
col_Mtnz = "black",
ylab = "M",
xlab = "Ta",
xlim = NULL,
ylim = NULL,
legend = TRUE,
pdf = FALSE
)
tor_obj |
a fitted model from |
plot_type |
A character string specifying the type of plot desired. Either "base" or "ggplot". Note that ggplots are still in development stage. |
col_torp |
color for torpor model prediction and points |
col_euth |
color for Euthermia model prediction and points |
col_Mtnz |
color of Mtnz |
ylab |
y label |
xlab |
x label |
xlim |
limit of the x-axis |
ylim |
limit of the y-axis |
legend |
A logical specifying if a legend should be added to the plot. Only work for base plot at the moment. |
pdf |
logical if a .pdf copy of the plot should be saved |
The function plots the predicted value as well as the raw data.
Measures are presented in different colors depending on the metabolic state.
Predicted values as well as 95% credible interval (segmented lines) are also presented.
This function enables the user to replicate the analysis done in Fasel et al. (in prep).
For more flexibility the users can use tor_fit()
and tor_predict()
directly.
a graphics plot or a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.