Hi Mark,
I reproduce your example without any problem, and it works in Chrome,
Mozilla and IE.
Here is your example:
https://dl.dropboxusercontent.com/u/20743714/duda.zip
Here is reproducible example:
library(plotGoogleMaps)
nc <- readShapeSpatial(
system.file("shapes/sids.shp",package="maptools")[1],
proj4string=CRS("+proj=longlat
+datum=NAD27"))
library(RColorBrewer)
m<-plotGoogleMaps(nc,zcol="NWBIR74",filename='MyMap6.htm',
mapTypeId='TERRAIN',colPalette= brewer.pal(7,"Reds"),
strokeColor="white")
Check your version of R and packages.
sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United
Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RColorBrewer_1.0-5 plotGoogleMaps_2.0 lattice_0.20-24 maptools_0.8-29
rgdal_0.8-16
[6] sp_1.0-14
loaded via a namespace (and not attached):
[1] foreign_0.8-59 grid_3.0.2 tools_3.0.2
Best,
Milan
On Fri, Mar 7, 2014 at 2:24 PM, Marc Mar? Dell'Olmo <marceivissa at gmail.com>
wrote:
Dear all,
I'm trying to do a quantile map (specifically septile map) with
plotGoogleMaps. I obtain the map, but this map don't display the
legend with the septiles intervals. Moreover, I can display the map
with firefox, but I have problems with explorer...
This is the sintax that I have used:
carto<-readShapeSpatial("C:/duda/carto.shp")
proj4string(carto) <- CRS("+proj=longlat +datum=WGS84 +no_defs")
plotGoogleMaps(carto, zcol="RMEs", filename="C:/duda/map.html",
mapTypeId='ROADMAP', colPalette= brewer.pal(7,"Reds"),
strokeColor="white", openMap=T)
With the following link you can download the data to execute this
syntax and the file "map.html" with the map:
https://dl.dropboxusercontent.com/u/14934021/duda.zip
Thank you very much!
Marc