plot_prev: Plot the change in prevalence

Description Usage Arguments Value

View source: R/post_simulation_process.R

Description

Plot monthly prevalences from csv files or list of cow_table. Set either one of output_dir+output_filename or csv.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_prev(
  param,
  output_filename = param$output_filename,
  output_dir = param$output_dir,
  i_simulation = seq_len(param$n_simulation),
  list_cows = NULL,
  language = "English",
  title = T,
  xlab = T,
  ylab = T,
  font = NULL
)

Arguments

param, output_filename, output_dir

See param.

i_simulation

csvs with this numbers are used.

list_cows

List consisted of cow_tables. Specify one of output_dir+output_filename or list_cows.

language

Language to which translate messages. At present, only English and Japanese is implemented.

title, xlab, ylab

logical or character. Plot a title, a label for x-axis and a label for y-axis. When TRUE, the default value is used. When FALSE or NULL, the title or label is not shown. When specified by character, the string is used as the title or the label.

font

Font in a plot. The default is "Meiryo" for Windows and "Hiragino Kaku Gothic Pro W3" for the other OS.

Value

An scatterplot by ggplot2::ggplot object.


fmsan51/blvibmjp documentation built on Sept. 2, 2020, 9:04 p.m.