Description Usage Arguments Value
Plot a polygon with colour fill over a polygon with black lines. Saves to a large pdf and a small png
1 2 3 | graphPolygonWithCategoriesSouthBrazil(colourVar, dataPoly, legendTitle,
fileName, plotTitle, directoryPlots = getwd(), backPolygon = NULL,
brewerPalette = "BuGn", fontFam = NULL)
|
colourVar |
categorical variable that defines the gradient colour. Same length and order as dataPoly. |
dataPoly |
SpatialPolygonsDataFrame to be plotted. |
legendTitle |
legend title as character. |
fileName |
filename (not with directory or extension) as character. |
directoryPlots |
directory to store plots |
backPolygon |
optional background polygon to be plotted on top of - fortified or raw (prefortifying will be faster if several maps are being generated). |
brewerPalette |
brewer palette name as character. Default is "BuGn". |
A ggplot object. In addition, a pdf file is written with name fileName
in directory directoryPlots
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.