R
R | RLab_chap08(๋ฐ์ดํฐ ์๊ฐํ) | 2020-11-20 | RLab01
ํธ๋ฆฌ๋งต GNI2014 ๊ตญ๋ฏผ์ด์๋ ๋ฐ์ดํฐ์
์ผ๋ก ํธ๋ฆฌ๋งต ์์ฑํ๊ธฐ ์ฌ๊ฐํ์ผ์ ํํ๋ก ๊ตฌ์ฑ๋์ด ์์ผ๋ฉฐ, ๊ฐ ํ์ผ์ ํฌ๊ธฐ์ ์๊น๋ก ๋ฐ์ดํฐ์ ํฌ๊ธฐ๋ฅผ ๋ํ๋ # ํธ๋ฆฌ๋งต install.packages("treemap") #treemap ํจํค์ง ๋ถ๋ฌ์ค๊ธฐ๊ธฐ library("treemap") data("GNI2014") head(GNI2014) dim(GNI2014) treemap( GNI2014, index = c("continent", "iso3"), #๊ณ์ธต๊ตฌ์กฐ ์ค์ (๋๋ฅ-๊ตญ๊ฐ) vSize = "population", #ํ์ผ์ ํฌ๊ธฐ(์ธ๊ตฌ์) vColor = "GNI", #ํ์ผ์ ์ปฌ๋ฌ type = "value", #ํ์ผ์ ์ปฌ๋ฌ๋ง(index, comp, dens) bg.labels = "yellow", title = "์ธ๊ณ..
2020. 11. 20. 15:13