autoplot.sf: Create a basic plot to visualise downloaded shapefiles

View source: R/autoplot.sf.R

autoplot.sfR Documentation

Create a basic plot to visualise downloaded shapefiles

Description

autoplot.sf creates a map of shapefiles downloaded using getShp.

Usage

## S3 method for class 'sf'
autoplot(object, ..., map_title = NULL, facet = FALSE, printed = TRUE)

Arguments

object

A sf object downloaded using getShp.

...

Other arguments passed to specific methods

map_title

Custom title used for the plot.

facet

If TRUE, splits map into a separate facet for each administrative level.

printed

Should the plot print to graphics device.

Value

autoplot.sf returns a map of the supplied sf object

Examples

## Not run: 
MDG_shp <- getShp(ISO = "MDG", admin_level = "admin0")
autoplot(MDG_shp)

## End(Not run)


malariaAtlas documentation built on Oct. 27, 2023, 9:07 a.m.