Questions tagged [rgooglemaps]

RgoogleMaps is R packages with two purposes: It provides an R interface to query the Google server for static maps and also can be used as a background image to overlay plots within R.

49 questions
1
vote
2 answers

printing output of google geomap as image using R

I am using googlevis package to plot a geographic map. The output I get is HTML. Is it possible to generate jpg or png output?
Sunny Sunny
  • 3,204
  • 4
  • 25
  • 26
0
votes
1 answer

Plot areas on RGoogleMaps

I have a shapefile with regions with polygons, and can successfully use PlotOnStaticMap like this: #Map <- GetMap.bbox(bb$ #Just to show I read "Map" here shp_0 <- rgdal::readOGR(dsn="dir", layer="TheLayer") shp_1 <- shp_0@polygons[[i1]] # where…
Chris
  • 2,256
  • 1
  • 19
  • 41
0
votes
2 answers

Creating a new map with getNOAA from older ggmap data

I made a map last year of survey points using Rgooglemaps in R. It was a simple map displaying points at which different surveys were conducted. Since google have updated their licence I want to re-create this map using the getNOAA function using…
0
votes
1 answer

Rgooglemaps PlotOnStaticMap Not Scaling with GetMap SCALE parameter

I'm trying to plot some GPS points using Rgooglemaps and to create a plot image larger than 640x640px. Rgooglemaps GetMap has a SCALE parameter which scales the retrieved google map by up to a factor of two. Examples: No Scaling & Scaled by 2 Note:…
Rocky K
  • 396
  • 2
  • 11
0
votes
1 answer

cannot plot negative longitude values in PlotOnStaticMap in R

I have: > df1 lon lat grp 1 0.02310676 51.39729 0 2 -0.04666115 51.40614 0 3 0.09730595 51.38398 0 4 0.02458385 51.39580 1 and want to plot it on a map. library(RgoogleMaps) > center [1] 51.389486 …
frank
  • 3,036
  • 7
  • 33
  • 65
0
votes
1 answer

ggmap colour according to survey type

I am trying to create a map that will display all my Lat/Long data points with each survey type represented by a different colour.…
Brian
  • 25
  • 1
  • 6
0
votes
1 answer

RGooglemaps Random Geocode Error (reproducible code)

I get a random number of errors that come back as NA when I try to geocode a lot of places using rgooglemaps getGeoCode function. Can anyone tell me why? (Reproducible code below) library(RgoogleMaps) library(foreach) ###Replicating a large search…
Neal Barsch
  • 2,810
  • 2
  • 13
  • 39
0
votes
1 answer

Multiple panned maps of various sections of the city with ggmap

I can achive Plotting multiple maps with ggmap which is also possible with faceting as described in Kale & Wickham (2013) R Journal paper. But I would like to plot a multiple series of maps that pan around particular, zoomed areas of the city. This…
Geek On Acid
  • 6,330
  • 4
  • 44
  • 64
0
votes
0 answers

Setting Color of Segments in R Based on Third Variable

I'm trying to take a data frame: lat lng active 122.536226 37.86047 green 122.536422 37.860303 green 122.536688 37.860072 red ... and create a map, using RgoogleMaps, with line segments (or lines?) that are from row 1 to row 2,…
amracel
  • 323
  • 1
  • 11
0
votes
1 answer

PlotOnStaticMap error: Error in points$Tile[, "X"] : subscript out of bounds

I have always used PlotOnStaticMap command to add points to Google Maps plot, but with this code RangeVenetoLon<-c(10.58, 13.13) RangeVenetoLat<-c(44.75, 46.71) MapVeneto<-GetMap.bbox(lonR=RangeVenetoLon, latR=RangeVenetoLat, size =…
Darko
  • 1,448
  • 4
  • 27
  • 44
0
votes
1 answer

PlotOnStaticMap (R package RgoogleMaps) doesn't work with old version

m trying to use this code in R, with package RgoogleMaps R Version: 2.14.2 RgoogleMaps version: 1.1.9.15 I need to use these old versions, here's the code (works with newest versions) PlotOnStaticMap(Map,lon=x,lat=y, FUN = points, pch=16,…
Darko
  • 1,448
  • 4
  • 27
  • 44
0
votes
1 answer

Using PlotPolysOnStaticMap function in RgoogleMaps: Plotting my polygons returns colors in "holes"

As the title says I am trying to plot a polygons using the PlotPolysonStaticMap function in RgoogleMaps. My polygon is a subset from a larger dataset of World Wildlife Fund (WWF) ecoregions. Since the bounds of my ecoregion confine the bounds of…
0
votes
2 answers

RgoogleMaps and ggmap producing blank plot

I am trying to use the RgoogleMaps package in R. I am running R version 3.1.0 on Windows Server 2008. No matter what I try to plot, I keep getting just a blank plot. I have tried writing out to external devices such as pdf or png with no luck. Here…
0
votes
1 answer

Plotting z as a color with R on a rGoogleMap

I have a function and I want to plot only x and y. z should be represented as a color. Is there a package that does the work for me ? f = function(a,b){ dnorm(a^2+b^2) } x = seq(-2, 2, 0.1) y = seq(-2, 2, 0.1) z = outer(x, y, f) persp(x, y,…
Paul Fournel
  • 10,807
  • 9
  • 40
  • 68
0
votes
1 answer

RgoogleMap on Shiny /R Studio

I would like to change the map which I am using on the following app: Right now I am working with worldHires, but I would like to use a nicer map (with all the respect), like google maps. Trying to use RgoogleMaps, I copied the following example…
user3224026
  • 83
  • 1
  • 6