자료 다운로드받기 귀찮을까봐 kmaInfo페키지 내에 asos위치자료는 info aws위치자료 파일은 info2에 저장해뒀음.
library(plotGoogleMaps)
## Warning: package 'plotGoogleMaps' was built under R version 3.5.2
## Loading required package: sp
## Loading required package: spacetime
library(shiny)
library(devtools)
library(shinydashboard)
## Warning: package 'shinydashboard' was built under R version 3.5.2
##
## Attaching package: 'shinydashboard'
## The following object is masked from 'package:graphics':
##
## box
library(RColorBrewer)
library(plotly)
## Warning: package 'plotly' was built under R version 3.5.2
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
install_github('qkdrk777777/kmaInfo')
## Skipping install of 'kmaInfo' from a github remote, the SHA1 (a37caf1f) has not changed since last install.
## Use `force = TRUE` to force installation
library('kmaInfo')
data('info')
data('info2')
mapTypeId에 따라 로드맵 말고 다른 형식의 배경지도로 바뀔 수 있고 openMap 을 T로하면 맵이 열리고 filename을 주면 html파일이 생성된다.
m3<-plotGoogleMaps(info,mapTypeId='roadmap',legend=F,openMap =T,filename = 'asos.html')
m4<-plotGoogleMaps(info2,legend=F,openMap = T,filename = 'asos.html')