Skip to main content

Posts

Featured

WORKING WITH VARIOUS MAP THEMES IN R/RSTUDIO

Plotting maps using ggmap() package in R/Studio has just got better. By changing the maptype parameter in the get_map( ) function, we can visualize maps in different formats.

Essential package(s): ggmap, tidyverse

To download these packages in R/Rstudio, you must run the install.packages("package name") command. When the download is complete, load the library of the package, by running the command - library("package name"). This is done to utilize the functions from the package to perform desired operation.

In the following lines of code, you can see that i have set the maptype to different formats such as terrain, satellite, roadmap, hybrid, watercolor and toner. The latter two come from stamen maps, while the others are sourced from Google maps.


Lets look at what the above commands have resulted in:
Map type: Terrain, Zoom: 12
Map type: Satellite, Zoom: 12 (Looks dense, lets zoom in a little)




























Map type: Satellite, Zoom: 16 (I don't know where we are in Bangalore…

Latest Posts

LAYERING THE GOOGLE MAP WITH POINTS IN R/RSTUDIO

HOW TO PLOT GOOGLE MAPS IN R/RSTUDIO?

HOW TO ADD "GO TO TOP" BUTTON FOR YOUR BLOG

INFOGRAPHICA : SPOT A LIAR

INFOGRAPHICA : POST PC REVOLUTION

INFOGRAPHICA : GOOGLE GLASSES

INFOGRAPHICA : CALORIE CONSCIOUS

INFOGRAPHICA : WHAT TYPE OF LEARNER ARE YOU ?

INFOGRAPHICA : BRAIN POWER

INFOGRAPHICA : FACE THE INTERVIEW