Description Usage Arguments Details Value Examples
plot_per_id
Plots raw data and a fitted model for a single study id in the dataset.
This model is fitted with fit_cond_id
. Plot also visualizes the
p value for the fit of the model.
1 2 |
data |
A dataframe containing per each study the time series of relevant variables (i.e. yearly climate values, yearly trait values or yearly selection differentials) to be analyzed. |
temperature |
A boolean indicating if the temperature data should be extracted (default is FALSE). |
precipitation |
A boolean indicating if the precipitation data should be extracted (default is FALSE). |
phenology |
A boolean indicating if the phenological data should be extracted (default is FALSE). |
morphology |
A boolean indicating if the morphological data should be extracted (default is FALSE). |
id |
A character specifying the unique study id. |
condition |
A character specifying which condition is to be tested (for more details see Radchuk et al. (in review)):
|
This function fits a single model per study id. This model includes predictors of interest and accounts for temporal autocorrelation. Predictors of interest can be:
a year (if assessing condition 1, change in climatic factor),
a climatic factor and a year (if assessing condition 2, change in the trait with climate).
A plot showing the raw data points and a fitted line.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.