Drawing lines in raster cells (in R), with application to species distribution mapping

I guess we all had this demand from one of our tutor saying: "look at this nice output a previous intern did, well I'd like you to do the same". In my case the previous intern was using a different software so I had to find a way to implement it... The task was to … Continue reading Drawing lines in raster cells (in R), with application to species distribution mapping

Taking control of the legend in raster (in R)

The basic default options of the raster package depict well continous data but when plotting caterogical data on maps like land use or species presence/absence other tricks should be used, below is some code to work around this. library(raster) ## Loading required package: sp ## raster 2.0-41 (21-December-2012) #create a raster of species presence/absence r … Continue reading Taking control of the legend in raster (in R)