[R] interactive Map: Popups

daniel daniel319 at gmail.com
Thu Jul 23 22:06:37 CEST 2015


Marie-Louise,

As long sa I know you have to gie googleVis the ISO code for provinces.

GR <- data.frame( ISO = c("DE-BW",
"DE-BY",
"DE-BE",
"DE-BB",
"DE-HB",
"DE-HH",
"DE-HE",
"DE-MV",
"DE-NI",
"DE-NW",
"DE-RP",
"DE-SL",
"DE-SN",
"DE-ST",
"DE-SH",
"DE-TH"),
name = c("Baden-Württemberg",
"Bayern",
"Berlin",
"Brandenburg",
"Bremen",
"Hamburg",
"Hessen",
"Mecklenburg-Vorpommern",
"Niedersachsen",
"Nordrhein-Westfalen",
"Rheinland-Pfalz",
"Saarland",
"Sachsen",
"Sachsen-Anhalt",
"Schleswig-Holstein",
"Thüringen"), value = 1:16)

G3 <- gvisGeoMap(GR, locationvar='ISO',
numvar='value', options=list(region="DE",
displayMode="regions", resolution="provinces,"))
plot(G3)

Daniel Merino


2015-07-23 17:00 GMT-03:00 Erich Neuwirth <erich.neuwirth at univie.ac.at>:

> Some shapefiles for Germany can be found here
>
> http://www.statsilk.com/maps/download-free-shapefile-maps <
> http://www.statsilk.com/maps/download-free-shapefile-maps>
>
> > On Jul 23, 2015, at 21:36, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> >
> > Hello Erich:
> >
> > I just looked at your leaflet package and its examples.  It is awesome!
> >
> > Thanks,
> > Erin
> >
> >
> > On Thu, Jul 23, 2015 at 6:28 AM, Erich Neuwirth <
> erich.neuwirth at univie.ac.at <mailto:erich.neuwirth at univie.ac.at>> wrote:
> > I am quite happy with that package leaflet which is not yet on CRAN
> > but available on Githib.
> >
> > https://github.com/rstudio/leaflet <https://github.com/rstudio/leaflet>
> <https://github.com/rstudio/leaflet <https://github.com/rstudio/leaflet>>
> >
> >
> > ______________________________________________
> > R-help at r-project.org <mailto:R-help at r-project.org> mailing list -- To
> UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help <
> https://stat.ethz.ch/mailman/listinfo/r-help>
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html <
> http://www.r-project.org/posting-guide.html>
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
> >
> > --
> > Erin Hodgess
> > Associate Professor
> > Department of Mathematical and Statistics
> > University of Houston - Downtown
> > mailto: erinm.hodgess at gmail.com <mailto:erinm.hodgess at gmail.com>
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Daniel

	[[alternative HTML version deleted]]



More information about the R-help mailing list