knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
# install.packages("remotes") remotes::install_github("youngwoos/koweps")
library(koweps) str(welfare, list.len = 20) library(dplyr) welfare %>% select(1:10)
# 연령 및 성별 인구 밀도 welfare <- welfare %>% mutate(sex = ifelse(h12_g3 == 1, "Male", "Female"), age = 2017 - h12_g4) library(ggplot2) ggplot(welfare, aes(x = age, fill = sex)) + geom_density(alpha = 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.