View source: R/util_raster2tibble.R View source: R/util_raster2tibble.R
util_raster2tibble | R Documentation |
Writes spatial raster values into tibble and adds coordinates.
util_raster2tibble(x, format = "long") util_raster2tibble(x, format = "long")
x |
Raster* object |
format |
Either "long" (default) or "wide" output for the resulting tibble |
You will loose any resolution, extent or reference system. The output is raw tiles.
a tibble
maptib <- util_raster2tibble(fractal_landscape) ## Not run: library(ggplot2) ggplot(maptib, aes(x,y)) + coord_fixed() + geom_raster(aes(fill = z)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.