I am trying to use tmap to create a map using a raster which we've been given as part of a uni assignment (sorry, I don't think I can share the file here).
However, it's coming up with an error code. Does this mean that there is some information missing in the file itself? Or is it something I can overcome in R?
Extremely beginner user
Thanks in advance
#using tmap to make map with raster
tm_layout(legend.outside = TRUE)
stars object downsampled to 963 by 1038 cells. See tm_shape manual (argument raster.downsample)
Error in all(x %in% shpcols) && !is.null(x) :
invalid 'x' type in 'x && y'
In addition: Warning message:
In all() :
Nothing to summarize if you provide a single RasterLayer; see cellStats