powered by
Writes spatial raster values into tibble and adds coordinates.
util_raster2tibble(x)util_raster2tibble(x)
util_raster2tibble(x)
Raster* object
a tibble
You will loose any resolution, extent or reference system. The output is raw tiles.
# NOT RUN { maptib <- util_raster2tibble(fractal_landscape) # } # NOT RUN { library(ggplot2) ggplot(maptib, aes(x,y)) + coord_fixed() + geom_raster(aes(fill = z)) # }
Run the code above in your browser using DataLab