shinyHostSwitch: Shiny-plot of consumer host-switching

View source: R/ShinyPlots.R

shinyHostSwitchR Documentation

Shiny-plot of consumer host-switching

Description

Shiny-plot of consumer host-switching

Usage

shinyHostSwitch()

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

## Only run examples in interactive R sessions
if (interactive()) {
 shinyHostSwitch()
}


HostSwitch documentation built on March 7, 2023, 8:26 p.m.