New and useful visualization packages
testTEXT
아래는 해당 패키지의 공개 예제
이다.
# install.packages("remotes")
::install_github("devOpifex/g2r") remotes
# 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")
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} }