This article shows how to plot the SpatRaster produced by rasterpic_img() with several packages.
Base plots
The most straightforward option is to use the base plot() methods provided by the package terra (terra::plotRGB()):
With ggplot2 + tidyterra
tidyterra provides full support for terra SpatRaster objects:
With tmap
tmap can also be used to create great maps:
With mapsf
mapsf also provides this functionality:
With maptiles
maptiles is an interesting package that provides the ability to download map tiles from different providers. It also has a specific function for plotting terra SpatRaster objects: