powered by
autoplot.MAPshp creates a map of shapefiles downloaded using getShp.
autoplot.MAPshp
# S3 method for MAPshp autoplot(object, ..., map_title = NULL, facet = FALSE, printed = TRUE)
A MAPshp object downloaded using /code/linkgetShp with format = "df" specified.
Other arguments passed to specific methods
Custom title used for the plot.
If TRUE, splits map into a separate facet for each administrative level.
Should the plot print to graphics device.
autoplot.MAPshp returns a map (gg object) of the supplied MAPShp dataframe.
# NOT RUN { MDG_shp <- getShp(ISO = "MDG", admin_level = "admin0") autoplot(as.MAPshp(MDG_shp)) # } # NOT RUN { # }
Run the code above in your browser using DataLab