R/basemap.R
ps_raster_to_df.Rd
Convert raster to data.frame
ps_raster_to_df(x)
A raster object.
A data.frame object which can be plotted using: ggplot2::geom_point(data = x, aes(x = x, y = y, col = rgb(layer.1/255, layer.2/255, layer.3/255))).