plot_model {shinySIR}R Documentation

Plot model output. This function plots the output of a fitted model data frame.

Description

Plot model output. This function plots the output of a fitted model data frame.

Usage

plot_model(output, linesize, textsize, xlabel, ylabel, legend_title,
  levels, values, ...)

Arguments

output

data frame output from solve_eqns().

linesize

numeric value for line width in ggplot.

textsize

numeric value for textsize in ggplot.

xlabel

character string for x axis label.

ylabel

character string for y axis label.

legend_title

character string for legend title.

levels

character vector of the variable names in the order they should be plotted. Default is to obtain the order from the initial conditions vector 'ics'.

values

vector specifying manual color scale. Length must equal the number of model variables.

...

extra argument to be passed through to ggplot scale_colour_manual: use 'labels' to change the legend names

Value

ggplot object


[Package shinySIR version 0.1.2 Index]