This article shows how to plot the SpatRaster produced by rasterpic_img() with several R packages.
Base plots
The most straightforward option is to use the base plot() methods provided by the terra package (terra::plotRGB()):
With ggplot2 and tidyterra
The tidyterra package provides plotting support for terra SpatRaster objects with ggplot2:
With tmap
The tmap package can also create maps from SpatRaster objects:
With mapsf
The mapsf package can also plot SpatRaster objects:
With maptiles
The maptiles package can download map tiles from different providers. It also provides a function for plotting terra SpatRaster objects: