st_dim_to_attr | R Documentation |
create an array with dimension values
st_dim_to_attr(x, which = seq_along(dim(x)))
x |
object of class |
which |
integer; indices of the dimensions to address (default: all) |
stars
object with dimension values as attributes
tif = system.file("tif/L7_ETMs.tif", package = "stars")
x1 = read_stars(tif)
(x = st_dim_to_attr(x1))
plot(x)
(x = st_dim_to_attr(x1, 2:3))
plot(x)
(x= st_dim_to_attr(x1, 3))
plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.