util_raster2tibble: Converts raster data into tibble

Description Usage Arguments Details Value Examples

Description

Writes spatial raster values into tibble and adds coordinates.

Usage

1
2
3

Arguments

x

Raster* object

Details

You will loose any resolution, extent or reference system. The output is raw tiles.

Value

a tibble

Examples

1
2
3
4
5
6
7
8
maptib <- util_raster2tibble(fractal_landscape)
## Not run: 
library(ggplot2)
ggplot(maptib, aes(x,y)) +
    coord_fixed() +
    geom_raster(aes(fill = z))

## End(Not run)

landscapetools documentation built on May 1, 2019, 9:22 p.m.