emodplot.by_gender
Plot by gender
Description
Plot by gender
Usage
emodplot.by_gender(data, date.start, date.end, col2plot, title = "", unit = "")
Arguments
Argument |
Description |
---|---|
|
A tibble returned from read.simulation.results(…, stratify_columns = c(“Year”, “Gender”), aggregate_columns = c(“Population”,”Newly.Infected”, “Infected”)) More aggregate columns can be used, but more stratify columns will cause problems in the plot. |
|
integer year to start the plotting (i.e., 2000) |
|
integer year to end the plotting (i.e., 2030) |
|
string of column name you want to plot (i.e., “Infected”) |
|
string of plot title (i.e., “Infected Plot”) |
|
string of the units for col2plot (i.e., “(Number of People)”) |
Details
plots a metric in data. First, it faintly plots all simulations. Then it plots a bold line of the mean of all simulations
Value
a ggplot with all data plotted