Description Usage Arguments Value Examples
View source: R/matrix_to_stars.R
Converts matrix
to a single-band stars
raster, conserving the matrix orientation where rows become the y-axis and columns become the y-axis. The bottom-left corner of the axis is set to (0,0)
coordinate, so that x and y coordinates are positive across the raster extent.
1 | matrix_to_stars(m, res = 1)
|
m |
A |
res |
The cell size, default is |
A stars
raster
1 2 3 | data(volcano)
r = matrix_to_stars(volcano, res = 10)
plot(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.