util_raster2tibble {landscapetools} | R Documentation |
Converts raster data into tibble
Description
Writes spatial raster values into tibble and adds coordinates.
Usage
util_raster2tibble(x)
util_raster2tibble(x)
Arguments
x |
Raster* object |
Details
You will loose any resolution, extent or reference system. The output is raw tiles.
Value
a tibble
Examples
maptib <- util_raster2tibble(fractal_landscape)
## Not run:
library(ggplot2)
ggplot(maptib, aes(x,y)) +
coord_fixed() +
geom_raster(aes(fill = z))
## End(Not run)
[Package landscapetools version 0.5.0 Index]