if (FALSE) {
require(stars)
file = system.file("tif/L7_ETMs.tif", package = "stars")
L7 = stars::read_stars(file)
tm_shape(L7) +
tm_rgb(col.scale = tm_scale_rgb(probs = c(0, .99), stretch = TRUE))
tm_shape(L7) +
tm_rgb(col.scale = tm_scale_rgb(stretch = "histogram"))
}
Run the code above in your browser using DataLab