전체 글
-
-
-
ggmap를 이용한 지도 그리기 : 범례추가R 2017. 9. 9. 09:11
install.packages("ggmap")install.packages("ggplot2") library(ggmap) library(ggplot2) # 국내 유명 데이터분석 교육업체명 company.names = c("1.(주)데이타솔루션", "2.패스트캠퍼스", "3.한국글로벌널리지", "4.한국데이터진흥원", "5.멀티캠퍼스") # 국내 유명 데이터분석 교육업체의 주소 company.address = c("서울특별시 강남구 언주로 620", "서울특별시 강남구 도산대로 8길 17-8", "서울특별시 강남구 언주로 425", "서울특별시 중구 세종대로 9길 42", " 서울특별시 강남구 테헤란로 212") # 경도(longitude)와 위도(latitude) 알아내기 company.address.g..
-
ggmap 패키지를 이용하여 지도 그리기R 2017. 9. 9. 00:10
install.packages("ggmap")install.packages("ggplot2") library(ggmap) library(ggplot2) # 국내 유명 데이터분석 교육업체명 company.names = c("(주)데이타솔루션", "패스트캠퍼스", "한국글로벌널리지", "한국데이터진흥원", "멀티캠퍼스") # 국내 유명 데이터분석 교육업체의 주소 company.address = c("서울특별시 강남구 언주로 620", "서울특별시 강남구 도산대로 8길 17-8", "서울특별시 강남구 언주로 425", "서울특별시 중구 세종대로 9길 42", " 서울특별시 강남구 테헤란로 212") # 경도(longitude)와 위도(latitude) 알아내기 company.address.geocode
-
animation 패키지를 이용한 움직이는 그림R 2017. 9. 8. 11:07
install.packages("animation")install.packages("png") library(animation) library(png) # 시간간격을 0.01초로 설정 animation::ani.options(interval = 0.01) # 강풀작가의 예고편 그림을 png로 17개 저장함. for(i in 1:17){ # png패지키의 readPNG() 함수를 이용해서 그림 읽어오기 moving.image = png::readPNG(paste("d:/R/Contents/moving", i, ".png", sep = "")) plot.new() rect(0, 0, 1, 1, col = "white") rasterImage(moving.image, 0, 0, 1, 1) animation::..