shinyHostSwitch: Shiny-plot of consumer host-switching

Description Usage Details Value Examples

View source: R/ShinyPlots.R

Description

Shiny-plot of consumer host-switching

Usage

1

Details

The function creates an interactive web-based front-end using Shiny App. The Shiny-Plot simulates dispersal and colonization events of a consumer on novel hosts.

The parameter values included in the function simHostSwitch can be modified by the slider bars. The refresh button on the top left (Refresh simulation) plots the new simulation.

Black dots are the phenotype values of the Consumer after each event of reproduction. The green squares represent the value of phenotype values of the Consumer favored by the novel host proposed at each generation. The red squares are the phenotype values favored by the current host.

The total number of dispersal and successful host switch events (or individuals) by Consumers for each are reported below the plot.

Value

a dynamic interface plotting the dispersion events and host switch simulations and reacting to user input.

Examples

1
2
3
4
## Only run examples in interactive R sessions
if (interactive()) {
 shinyHostSwitch()
}

HostSwitch documentation built on Sept. 27, 2021, 9:06 a.m.