tmaps error invalid 'x' type in 'x && y'

Hi,

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_shape()+
tm_raster()+
tm_layout(legend.outside = TRUE)

#Error message
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


Libraries installed:
ggplot2
ggspatial
landscapemetrics
landscapetools
raster
rgdal
rgeos
shiny
sp
tibble
tidyverse

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.