g2r

R Visualization

New and useful visualization packages

Jongseon, Han https://hanjongseon.github.io
03-03-2021
# install.packages("remotes")
remotes::install_github("devOpifex/g2r")
# library(g2r)
# json <- jsonlite::fromJSON(
#   "https://gw.alipayobjects.com/os/antvdemo/assets/data/baby-names.json"
# )
# 
# json %>%
#   dplyr::group_by(name, year) %>%
#   dplyr::summarise(n = sum(n)) %>%  
#   g2(asp(year, n, color = name, shape = "smooth")) %>% 
#   fig_area(
#     adjust("stack"), adjust("symmetric"),
#     fillOpacity = .85
#   ) %>% 
#   gauge_x_linear(tickInterval = 20) %>% 
#   legend_color(position = "right")

Citation

For attribution, please cite this work as

Han (2021, March 3). Jongseon Han: g2r. Retrieved from https://hanjongseon.github.io/posts/2021-03-04-usefulnewpack/

BibTeX citation

@misc{han2021g2r,
  author = {Han, Jongseon,},
  title = {Jongseon Han: g2r},
  url = {https://hanjongseon.github.io/posts/2021-03-04-usefulnewpack/},
  year = {2021}
}