-
coord_quickmap()R 2018. 8. 1. 10:26
install.packages("ggplot2")
install.packages("maps")
library(ggplot2)
library(maps)nz <- ggplot2::map_data("nz")
# First
ggplot2::ggplot(data = nz, mapping = aes(x = long, y = lat, group = group)) +
geom_polygon(fill = "white", color = "black")# Second
ggplot2::ggplot(data = nz, mapping = aes(x = long, y = lat, group = group)) +
geom_polygon(fill = "white", color = "black") +
coord_quickmap()[출처] R for Data Science, Hadley Wickham & Garrett Grolemund, O'Reilly, p32
'R' 카테고리의 다른 글
tableHTML::tableHTML() (0) 2018.08.03 탐색적 자료 분석에서 해야 하는 두 개의 질문 (0) 2018.08.02 메이저리그 야구 통계학 : 들어서며 (0) 2018.07.28 메이저리그 공개 데이터 (0) 2018.07.28 김재민 블로그(야구통계) (0) 2018.07.28