Description Usage Arguments Details Value Examples
Estimates of pairwise log-odds ratios and associated 95% confidence intervals for each lag between 1 and max_lag
calculated by the lorelogram
function are plotted against the temporal or spatial lag (x-axis). The plotted lorelogram provides a graphical description of how correlation between outcomes changes as we increase the distance (in space or time) between sampling occassions. This function provides arguments for the customization of several aspects of the plot.
1 2 3 4 |
data |
output of |
save_LOR_plot |
logical. Create a .jpg file of the results (default: FALSE)? |
outDir |
character. Conditional on |
colour |
character. Color to fill the confidence interval band (default: "#0C71C9"). |
linetype |
character. Linetype for the average log-odds ratio values (default: "solid"). It accepts all the linetype available for ggplot2::geom_line. |
title |
character. Title of the plot (default: NULL). |
x_axis_title |
character. Title of x-axis of the plot (default: "Lag"). |
y_axis_title |
character. Title of y-axis of the plot (default: "Log-odds ratio"). |
ylim |
numeric. Vector of two values |
x_break |
numeric. Unit-lag distance between primary breaks in the x_axis (default: 10). |
alpha |
numeric. Set transparency of the band describing the confidence interval. Should be a value between 0 and 1 (default: 1). |
data
must be a data.frame object containing the numeric output of the lorelogram
function. Visual aspects of the lorelogram plot such as color and transparency of the confidence interval band, linetype of the curve representing the average log-odds ratios estimates, title and x- and y-axis labels, can be customized and the resulting plot can be saved in a folder of user choice.
The function returns a plot of the estimates of pairwise log-odds ratios and associated 95% confidence intervals for each lag between 1 and max_lag
.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.