Graphics and maps in R

R set up

Wondering what this Git thing is? https://www.rstudio.com/resources/videos/happy-git-and-gihub-for-the-user-tutorial/

Getting Help

Local

Worldwide

The Good Stuff

Extra stuff

General resources

GIS with R

Introduction to visualising spatial data in R by Robin Lovelace and James Cheshire

Create Maps with R Graphics

Books

interactive session

http://pad.software-carpentry.org/DaSH-R

http://rpubs.com/cyclemumner/aad-mapping-tips

  • group session about problems, identify some examples to explore

Questions

These are all open questions! We can use this to collect resources, all work in progress.

  • How to get data on oceanographic features and make nice maps?

DataScienceHobart#3

  • How to add ice edge to maps?

DataScienceHobart#1

Illustrations

Exactly what we do will depend on the group session.

Broad topics to touch on

Reading in data

Shapefiles

raster::shapefile("myfile.shp")

Rasters, grids, images.

raster::raster("myraster.tif")

raster::brick("myRGB.tif")

raster::brick("myMegaSplat.nc", varname = "Mega")

raster::stack(c("mydata1.nc", "mydata2.nc", "mydata3.nc"))

Packages with data.

maptools, rworldmap, maps, orsifronts,

Here I list packages we should also look at so we know what they have.

colours

https://github.com/Bart6114/artyfarty

viridis

RColorBrewer

colorspace

mapping

leaflet

mapview

raster and rgdal

sf

graphics paradigms

ggplot2

base, lattice, grid

ggvis and leaflet and plotly