Robert Hijmans

Results 183 comments of Robert Hijmans

I do not know tidyverse, but I suppose this package could be especially useful for SpatVector as these can be represented as a data.frame (tibble) that includes their geometry (`as.data.frame(v,...

Can argument `zlim` be used here? ``` library(terra) b

The example does not work. You can save/read a SpatRaster with saveRDS/readRDS if you want, but not with save//load

These are different issues. If your data are not within [0, 255] you need to provide argument `scale`. For example `plotRGB(a, scale=2500)` That should probably solve your problem. You could...

What about setting the scale as in `plotRGB(a, scale=2500)`

And it could be really helpful if you made an example (with code, not files) of two SpatRasters that have different ranges, but for which you would like to colors...

I understood what you were suggesting; but there might be better ways,

When argument `zlim` is used with `stretch=lim`, the stretching now accounts for `zlim`. So you can simply set the limits you want/need to get consistent coloring, even with stretching different...

My approach is not because of time constraints. I do not want to add functionality now that I will remove later. I think that plot(RGB) should return an object that...

It is probably related to the version of GDAL/PROJ . What does ``` terra::gdal(lib="") ``` return on CENTOS? And this might work: ``` DEMext_prj