Making A World Map
Geom polygon in ggplot2 to create the map.
Making a world map. Require the maps package. Key r functions and packages. Easily create and share maps. It is possible to create advanced maps using base r methods murrell 2016 but this chapter focuses on dedicated map making packages.
Map data in ggplot2 to retrieve the map data. Static mapping is straightforward with plot as we saw in section 2 2 3. Map making the art of cartography is an ancient skill that involves communication intuition and an element of creativity. Share with friends embed maps on websites and create images or pdf.
You can also check the world microstates map which additionally shows all microstates and the world subdivisions map which features all countries divided into their subdivisions provinces states etc. Us map colored by violent crime rates. Select preview mapand go ahead and download the generated map chart. Make a custom map in 3 simple easy steps click on any country state on the map to change its color.
Load required packages. Qgis has a powerful tool called print composer that allows you to take your gis layers and package them to create maps. If you are interested in historical maps please check historical mapchart where you can find cold war 1946 1989 and beyond 1815 1880 world war i world war ii and more world maps. Make a choropleth map.
Create a simple map. We ll use the viridis package to set the color palette of the choropleth map. Add the title you want for the map s legend and choose a label description for each color. World map colored by life expectancy.
Related book ggplot2 essentials for great data visualization in r.