Description Usage Arguments Value Author(s) See Also Examples
The function provide links to icon markers or icon labels ready to use for plotGoogleMaps.
1 2 3 4 5 6 7 8 |
attribute |
vector of attribute data |
colPalette |
colours to be used to fill marker symbols or labels |
at |
values at which colours will change |
height |
text height in pixels |
icon |
if false create just labels, contrariwise create markers and labels in markers |
scale |
scale of marker icon |
The function provide links to icon markers or icon labels ready to use for plotGoogleMaps.
Milan Kilibarda kili@grf.bg.ac.rs
plotGoogleMaps, ellipseGoogleMaps, bubbleGoogleMaps
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Data preparation
data(meuse)
coordinates(meuse)<-~x+y
proj4string(meuse) <- CRS('+init=epsg:28992')
m<-plotGoogleMaps(meuse,zcol='zinc')
# zinc labels
ic=iconlabels(meuse$zinc, height=12)
m<-plotGoogleMaps(meuse,zcol='zinc', iconMarker=ic)
# landuse labels and markers
ic=iconlabels(meuse$landuse, height=12, colPalette=rainbow(15) )
m<-plotGoogleMaps(meuse,zcol='landuse',colPalette=rainbow(15), iconMarker=ic)
ic=iconlabels(meuse$landuse, height=12, colPalette='#9ECAE1', icon=TRUE)
m<-plotGoogleMaps(meuse,zcol='landuse',colPalette='#9ECAE1', iconMarker=ic)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.