Description Usage Arguments Value Examples
Get spikes' tips, may be usefull for labels
1 | spikelabel(x, var, inches = 3, fixmax)
|
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. |
fixmax |
value of the tallest spike (see Details). |
An sf POINT layer of spikes tips is returned
1 2 3 4 5 6 | library(sf)
com <- st_read(system.file("gpkg/com.gpkg", package="spikemap"))
plot(st_geometry(com))
spikemap(x = com, var = "pop")
tips <- spikelabel(x = com, var = "pop")
plot(st_geometry(tips), add = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.