You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
L7file = system.file("tif/L7_ETMs.tif", package = "stars")
L7 = read_stars(L7file)
### working but gives warning
tm_shape(L7) +
tm_raster(3, 2, 1)
# Warning message:
# In value[[3L]](cond) : could not rename the data.table
### not working gives error
tm_shape(L7) +
tm_rgb(3, 2, 1)
# Error: palette should be a character value
# In addition: Warning message:
# In value[[3L]](cond) : could not rename the data.table
The text was updated successfully, but these errors were encountered:
Thx. It's already some time ago that I've worked on stars objects with bands and attributes. So I have to recall which function calls should be supported and that the 'correct' approach is.
At least, tmap4 does the 'multivariate' stuff via tm_mv and tm_mv_dim.
Since L7 is a stars object with a dimension called band this is the correct (but tedious looking) code:
Example using the stars raster:
The text was updated successfully, but these errors were encountered: