Description Usage Arguments Details Examples
Plot a layer of spikes on a map.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x |
an sf object, a simple feature collection. |
var |
name of the numeric field in x to plot. |
inches |
size of the tallest spike, in inches. |
width |
width of the spike's base. |
fixmax |
value of the tallest spike (see Details). |
col |
filling color of the spikes. |
border |
border color of the spikes. |
lwd |
width of spikes borders. |
legend.pos |
position of the legend, "bottomright", or a vector of two coordinates in map units (c(x, y)). If legend.pos is "n" then the legend is not plotted. |
legend.title.txt |
title of the legend. |
legend.title.cex |
size of the legend title. |
legend.values.cex |
size of the values in the legend. |
legend.values.rnd |
number of decimal places of the values displayed in the legend. |
add |
whether to add the layer to an existing plot (TRUE) or not (FALSE). |
Two maps with the same inches and fixmax parameters will be comparable.
1 2 3 4 | library(sf)
com <- st_read(system.file("gpkg/com.gpkg", package="spikemap"))
plot(st_geometry(com))
spikemap(x = com, var = "pop")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.