DataScienceHobart / 2017-02-03-graphics-imas

4 stars 2 forks source link

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

Intro to Spatial Analysis in R

Books

interactive session

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

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

Questions

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

https://github.com/DataScienceHobart/2017-02-03-graphics-imas/issues/3

https://github.com/DataScienceHobart/2017-02-03-graphics-imas/issues/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