shiny_endo_plot: shiny_plot

View source: R/shiny_endo_plot.R

shiny_endo_plotR Documentation

shiny_plot

Description

shiny_plot

Usage

shiny_endo_plot(
  parameters = params,
  endo_species = 2,
  endo_number = 1,
  tmax = 2500,
  kmax = NA,
  colours = c("blue", "orange", "red"),
  ylabel = "Proportion infected",
  xlabel = "Timesteps"
)

Arguments

parameters

: parameter combinations that will be simulated

endo_species

: number of endosymbiont species no

endo_number

: number of individuals per species

tmax

: max number of timesteps

colours

: vector of colours to be included in the graph

host_dem

: if TRUE, host demographics (speciation, and extinction) will be included in the simulation.

Value

A shiny application line graph of number of hosts with intracellular endosymbionts within the system at each timestep at each parameter combination.

Examples

params <- set_parameters(two_species = TRUE,K = 200,lambda = 1,mu = 0.5,betaA =0.001,betaB = 0.001,sigmaA = 0.1,sigmaB = 0.1,sigmaAB = 1,sigmaBA = seq(0, 1, 0.1),nuA = 0.01,nuB = 0.01)
shiny_plot(parameters = params, endo_species = 2, endo_number = 1)

elishafreedman/bugz documentation built on Feb. 10, 2023, 1:08 p.m.