View source: R/plot_diffusion.R
plot_diffusion | R Documentation |
This function allows users to simulate data using a NBDA model. The user must supply a list of STRAND data objects, a set of parameters, and a series of formulas following standard lm() style syntax.
plot_diffusion(long_data, palette = c("#13667B", "#35ABC0"))
long_data |
A list of data objects of class STRAND prepared using the make_strand_data() function. The data objects must include all covariates and trait diffusion data used in the formulas listed below. |
palette |
A 2-vector of plot colors. First element is for the low value of scale, second is for the high value. |
A ggplot2 object.
## Not run:
plot_diffusion(long_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.