Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/00_S3_Definitions.R
Plot values as discretized scale circles on a map.
1 2 3 |
x |
Object gadm_sp |
data |
Object data.frame with columns 'latitude' and 'longitude' |
color |
a valid color |
value |
Character Name of a column of the data.frame. |
breaks |
vector of breaks |
steps |
unused |
labels |
vector of labels |
opacity |
float Background opacity of the filled circles |
title |
Character The title of the plot |
note |
Character Add an annotation |
legend |
Character The title of the legend |
—-
Object ggplot2
—-
Jean Pierre Decorps <jp.decorps@epiconcept.fr>
—-
—-
1 2 3 4 5 6 7 8 9 10 11 12 | library(GADMTools)
data("Corsica")
Corse <- gadm_union(Corsica)
longitude <- runif(6, min=8.74, max = 9.25)
latitude <- runif(6, min=41.7, max = 42.6)
Cases <- runif(6, 25, 112)
DAT <- data.frame(longitude, latitude, Cases)
classDots(Corse, DAT, color="blue", value = "Cases", breaks = NULL,
steps = 4, labels = NULL, opacity = 0.5, title="",
note=NULL, legend = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.