Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup--------------------------------------------------------------------
library(bage)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)
## -----------------------------------------------------------------------------
draws <- generate(HFD, n_draw = 200, age_labels = 15:49) |>
mutate(age = as.integer(age),
value = exp(value))
ggplot(draws, aes(x = age, y = value, group = draw)) +
geom_line(alpha = 0.1)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.