I was wondering how to show the progress of a ggplot2 or ggmap operation while it is calculating. I'm working with some very large shapefiles and they can take several minutes to display the plot. I know there are several packages and functions that allow you to insert a progress bar or percentage during a calculation (eg. the "progress" package), but I can't figure out how to insert it inside the ggplot operation.
So, example below:
library (ggplot2)
library (sf)
ggplot() +
geom_sf(data = "myshapefile.shp", size = 1, color = "black", fill = "red") +
ggtitle("Testplot") +
coord_sf()
This shapefile takes several minutes to render into a plot. Rather than just sitting there waiting for it to show up and not knowing when it will finish or if it is stuck. I would like to see some kind of progress (bar or percentage, doesn't matter - eg. showing when it is 10%, 20%, 30%, etc. done).
