Learn R Programming

EpidigiR (version 0.1.2)

epi_visualize: Flexible Epidemiological Visualization

Description

Creates visualizations for prevalence mapping, epidemic curves, or general plots (scatter, boxplot).

Usage

epi_visualize(
  data,
  x,
  y = NULL,
  type = c("map", "curve", "scatter", "boxplot"),
  ...
)

Value

A plot (spplot for maps, base R for others).

Arguments

data

Input data frame or SpatialPolygonsDataFrame with relevant columns.

x

X-axis column name (character, e.g., "region").

y

Y-axis column name (character, e.g., "prevalence", optional).

type

Plot type: "map", "curve", "scatter", "boxplot".

...

Additional plotting parameters (e.g., main, xlab).