plot_diffusion: A function to simulate a network-based diffusion proccess...

View source: R/plot_diffusion.R

plot_diffusionR Documentation

A function to simulate a network-based diffusion proccess using the STRAND framework

Description

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.

Usage

plot_diffusion(long_data, palette = c("#13667B", "#35ABC0"))

Arguments

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.

Value

A ggplot2 object.

Examples

## Not run: 
plot_diffusion(long_data)

## End(Not run)


ctross/STRAND documentation built on April 17, 2025, 3:53 a.m.