r:googlevis
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r:googlevis [2017/06/07 14:05] – [Bubble charts] hkimscil | r:googlevis [2017/06/07 17:23] (current) – [Public Parking Places] hkimscil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Worldbank data e.g. ====== | ====== Worldbank data e.g. ====== | ||
| - | < | + | < |
| + | demo(googleVis)</ | ||
| + | |||
| + | < | ||
| + | Sys.setlocale(category = " | ||
| + | install.packages(" | ||
| library(googleVis) | library(googleVis) | ||
| demo(WorldBank)</ | demo(WorldBank)</ | ||
| - | |||
| {{youtube> | {{youtube> | ||
| - | |||
| < | < | ||
| Line 268: | Line 271: | ||
| </ | </ | ||
| + | ====== Places in Jeju ====== | ||
| + | < | ||
| + | install.packages(" | ||
| + | install.packages(" | ||
| + | |||
| + | Sys.setlocale(" | ||
| + | library(googleVis) | ||
| + | library(ggmap) | ||
| + | |||
| + | ft_placelst <- function(place) { | ||
| + | temp <- geocode(place) | ||
| + | place <- gsub(" | ||
| + | df_lst <- cbind(place, | ||
| + | return(df_lst) | ||
| + | } | ||
| + | |||
| + | df_placelst <- ft_placelst(readLines(" | ||
| + | |||
| + | latlong <- paste(df_placelst$lat,":", | ||
| + | latlong <- gsub(" ","", | ||
| + | |||
| + | df_placelst <- cbind(df_placelst, | ||
| + | df_placelst | ||
| + | placePath <- gvisMap(df_placelst, | ||
| + | | ||
| + | enableScrollWheel=TRUE, | ||
| + | mapType=' | ||
| + | useMapTypeControl=TRUE, | ||
| + | width=800, | ||
| + | plot(placePath) | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| ====== Population by districts ====== | ====== Population by districts ====== | ||
r/googlevis.1496813751.txt.gz · Last modified: by hkimscil
