DELEDotDensityMap: DELEDotDensityMap

Description Usage Arguments Value Examples

View source: R/DELEDotDensityMap.R

Description

DotDensity mapping data by state

Usage

1
2
3
4
5
DELEDotDensityMap(data, DELEcode, var, DotWeight = 0.5,
  polyEdgColor = "blue", OneDFor = 50,
  dotColor = "lightgoldenrodyellow",
  prov = providers$NASAGIBS.ViirsEarthAtNight2012,
  polyColor = "midnightblue")

Arguments

data

a data set that contains at least your delegations and the variable to represent

DELEcode

a numeric that indicate the colum number that contains the delegations code

var

a numeric that indicate the colum number that contains your variable

DotWeight

the dot weight

polyEdgColor

the boundries color

OneDFor

the unit (exp: 60 to present 60 votes per dot )

dotColor

the dots color

prov

: it have to be in format : providers$... and the provider you want to have in the background you can see all the providers by typing View(providers) or going to https://leaflet-extras.github.io/leaflet-providers/preview/ where you can fin all the providers and how they look like

polyColor

the polygons filling color

Value

a map with your data

Examples

1
2
3
4
testD <- cbind(tnMAPDELE@data[["NAME_2"]],tnMAPDELE@data[["HASC_2"]],tnMAPDELE@data[["NAME_1"]],rnorm(268,50,20))
testD=as.data.frame(testD)
testD[,4]=as.numeric(testD[,4])
DELEDotDensityMap(testD,DELEcode = 2, polyEdgColor= "red" ,var=4,OneDFor = 60)

AbbassiNarjes/DETmapTun documentation built on May 24, 2019, 12:34 a.m.