Articles by the Geocomputation with R website

Installing spatial R packages on Ubuntu

March 29, 2020 | the Geocomputation with R website

This post explains how to quickly get key R packages for geographic research installed on Ubuntu, a popular Linux distribution. A recent thread on the r-spatial GitHub organization alludes to many considerations when choosing a Linux set-up for work with geographic data, ranging from the choice of Linux distribution (distro) ...
[Read more...]

Inset maps with ggplot2

December 7, 2019 | the Geocomputation with R website

Inset maps enable multiple places to be shown in the same geographic data visualisation, as described in the Inset maps section (8.2.7) of our open source book Geocomputation with R. The topic of inset maps has gained attention and recently Enrico Spinielli asked inset maps could be created for data in ...
[Read more...]

Map coloring: the color scale styles available in the tmap package

October 16, 2019 | the Geocomputation with R website

This vignette builds on the making maps chapter of the Geocomputation with R book. Its goal is to demonstrate all possible map styles available in the tmap package. Prerequisites The examples below assume the following packages are attached:
library(spData) # example datasets
library(tmap)   # map creation
library(sf)     # spatial data reprojection
The world object containing a world map data from Natural Earth ...
[Read more...]

Grids and graticules in the tmap package

September 3, 2019 | the Geocomputation with R website

This vignette builds on the making maps chapter of the Geocomputation with R book. Its goal is to demonstrate how to set and modify grids and graticules in the tmap package. Prerequisites The examples below assume the following packages are attached:
library(spData) # example datasets
library(tmap)   # map creation (>=2.3)
library(sf)     # spatial data classes
Grids and graticules The tmap package offers two ...
[Read more...]

Geographic projections and transformations

August 20, 2019 | the Geocomputation with R website

Introduction This workbook outlines key concepts and functions related to map projections — also referred to as coordinate reference systems (CRSs) — and transformation of geographic data from one projection to another. It is based on the open source book Geocomputation with R, and Chapter 6 in particular. It was developed for the ‘...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)