Closed adrfantini closed 2 years ago
is there a way geom_stars() could actually plot a color composite?
st_as_stars(L7_ETMs)[,,,1:3] |> st_rgb() -> x
ggplot() + geom_stars(data = x, fill = as.vector(x[[1]]))
Cool. I suggest including this example in the documentation, perhaps with linear stretching.
Done; the linear stretching is in the docs of st_rgb()
.
A while back
sf
has implemented ageom_sf
which provides aggplot2
plotting interface forsf
objects. And it is awesome.stars
imho should also provide something similar.