autoplot.pop_data {serocalculator} | R Documentation |
Plot distribution of antibodies
Description
autoplot()
method for pop_data
objects
Usage
## S3 method for class 'pop_data'
autoplot(object, log = FALSE, type = "density", strata = NULL, ...)
Arguments
object |
A |
log |
whether to show antibody responses on logarithmic scale |
type |
an option to choose type of chart:
the current options are |
strata |
the name of a variable in |
... |
unused |
Value
a ggplot2::ggplot object
Examples
library(dplyr)
library(ggplot2)
library(magrittr)
xs_data <-
serocalculator_example("example_pop_data.csv") %>%
read.csv() %>%
as_pop_data()
xs_data %>% autoplot(strata = "catchment", type = "density")
xs_data %>% autoplot(strata = "catchment", type = "age-scatter")
[Package serocalculator version 1.3.0 Index]