Description Usage Arguments Value Examples
Plot the data in the incidence database
1 | plot_rates(x, y, psize = NULL, group = NULL)
|
x |
Probably age group indicator (must be numeric) |
y |
Probably age-specific rates (per 100,000) |
psize |
Variable to scale point size |
group |
Variable indicating groups to plot using different colors |
ggplot
1 2 3 4 5 6 7 8 9 10 11 | # Plot incidence
data(incratesf)
plot_rates(incratesf$Age, incratesf$Female.Rate.Per.100K,
psize=incratesf$Cases, group=paste(incratesf$Country,
incratesf$Year))
# Plot mortality
data(allmortratesf)
df <- subset(allmortratesf,
Country=='United States' | Country=='Uganda')
plot_rates(df$Age, df$Rate.Per.100K, psize=NULL, group=df$Country)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.