This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
library(leaflet)
city <- c("Frankfurt am Main", "Amsterdam", "Rotterdam", "Paris", "Graz")
lat <- c(50.11088464932563, 52.346806, 51.92432405756038, 48.85706637253991, 47.06790061851549)
lon <- c(8.682118604550219, 4.950713, 4.4776278285252085, 2.3575532138855935, 15.441818064642888)
days <- c(1, 3, 2, 15, 10)
travelPlan <- data.frame(city = city, lat = lat, lon = lon, days = days)
map <- leaflet(travelPlan) %>%
addProviderTiles("CartoDB.DarkMatter") %>%
setView(lng = 7.9477, lat = 50.0917, zoom = 5) %>%
addCircles(lng = ~lon, lat = ~lat, radius = ~days * 300, color = "yellow") %>%
addMiniMap(width = 150, height = 150) %>%
addPolylines(lng = ~lon, lat = ~lat, weight = 2, color = "yellow")
map
#### 독일의 프랑크 프루투를 시작으로 오스트리아의 그랏츠 까지 배낭여행을 할 일정이다 ####