classDots: Plot dots on a map with values between different fixed...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/00_S3_Definitions.R

Description

Plot values as discretized scale circles on a map.

Usage

1
2
3
classDots(x, data, color="red", value = NULL, breaks = NULL,
                      steps = 5, labels = NULL, opacity = 0.5, title="",
                      note=NULL, legend = NULL)

Arguments

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

Details

—-

Value

Object ggplot2

Note

—-

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

References

—-

See Also

—-

Examples

 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)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.