Learn R Programming

GADMTools (version 3.9-1)

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

Description

Plot values as discretized scale circles on a map.

Usage

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

Value

Object ggplot2

Details

----

References

----

See Also

----

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab