Creates visualizations for prevalence mapping, epidemic curves, or general plots (scatter, boxplot).
epi_visualize(
data,
x,
y = NULL,
type = c("map", "curve", "scatter", "boxplot"),
...
)A plot (spplot for maps, base R for others).
Input data frame or SpatialPolygonsDataFrame with relevant columns.
X-axis column name (character, e.g., "region").
Y-axis column name (character, e.g., "prevalence", optional).
Plot type: "map", "curve", "scatter", "boxplot".
Additional plotting parameters (e.g., main, xlab).