The afrilandcover object can not be plotted using the raster::plot() function.
pacman::p_load_gh("afrimapr/afrilearndata")
pacman::p_load(raster)
# the issue is here:
raster::plot(afrilandcover)
#> Error in .local(.Object, ...):
# as a comparison, this works:
raster::plot(afripop2020)
#![](https://i.imgur.com/YyFGzUV.png)
Dear afrilearndata team,
The
afrilandcover
object can not be plotted using theraster::plot()
function.Created on 2022-04-07 by the reprex package (v2.0.1)
when I try to plot it using the
ggplot2
andstars
packages I obtain the following output:Created on 2022-04-07 by the reprex package (v2.0.1)
I hope this reprex be useful to identify a possible issue.