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
18
votes
4 answers

Get Map with specified boundary coordinates

I want to get a map with RgoogleMaps from R, with a specific coordinates boundary. What I can call is GetMap, and specify a center, I must add a zoom level. Everything works fine, except that I am not getting an image map bounded with the…
lbedogni
  • 7,917
  • 8
  • 30
  • 51
6
votes
2 answers

Converting UTM's to Lat/Long in R

I have a .csv file of 9,000+ UTM coordinates that I would like to convert into decimal degrees and I am having a bit of trouble. I have searched through several of the posts that have been posted here and elsewhere and I can't seem find a solution…
jlemanski915
  • 61
  • 1
  • 1
  • 3
5
votes
1 answer

Rgooglemaps plotting of text

I am using the Rgooglemaps package in R. I want to display text over plotted point using PlotOnStaticMap. There is also function named TextOnStaticMap for plotting text on specified coordinates. But in the output map either text is printed or…
3502
  • 103
  • 1
  • 5
5
votes
0 answers

How to get historical Google Earth imagery into R

Using R, it is possible to query the Google maps API for the most current imagery from specified locations e.g. library(ggmap) mal <- get_map('Malabo', zoom = 12, maptype = 'satellite') ggmap(mal) Does the API allow/support queries for historical…
shekeine
  • 1,445
  • 10
  • 22
4
votes
3 answers

Add basemap to SpatialPointDataFrames using R

I want to add a basemap to my plot, which visualizes three SpatialPointDataFrames. I've already tried the maptools as well as RgoogleMaps package, but both don't work in the way, which I want to. My problem: The SpatialPointDataFrames are not drawn…
schlomm
  • 551
  • 2
  • 11
  • 22
3
votes
2 answers

Rgooglemaps not plotting data over the map

I am having an issue with the R package Rgooglemaps. I can retrieve a map from google maps or open street map but the PlotOnStaticMap function does not overlap the data I want to plot to the map. Instead it opens a new graphical device where it…
3
votes
1 answer

Legend on RgoogleMaps?

I use library(RgoogleMaps) to plot measurement-positions on a map (points). There is different equipment on different points, and I successfully get separately colored points per equipment: theplot <- PlotOnStaticMap(lat=sitecoord$lat,…
Chris
  • 2,256
  • 1
  • 19
  • 41
3
votes
1 answer

RGoogleMaps axes

I can't find any documentation of the following problem I'm having with the axis labels in RGoogleMaps: library(RgoogleMaps) datas <- structure(list(LAT = c(37.875, 37.925, 37.775, 37.875, 37.875), LON = c(-122.225, -122.225,…
Rguy
  • 1,622
  • 1
  • 15
  • 20
3
votes
1 answer

R: efficient way to plot many plots in sequence with background image

I am looking to plot a stop-motion animation of a sequence of plots in R. These will show dots moving around on a trajectory. I would like to show a map in the background so that the locations of the moving points correspond to the map…
Sam A.
  • 413
  • 4
  • 13
3
votes
1 answer

Add points to RgoogleMaps plot

I'm using the package RgoogleMaps for R. I've plotted my map, and i need to add points with points command, but it doesn't work. Here's my code: PlotOnStaticMap(Map, add = FALSE, TrueProj=F, FUN = points) # plot the background # add external…
Darko
  • 1,448
  • 4
  • 27
  • 44
3
votes
2 answers

Error with package "RgoogleMaps" HTTP status was '403 Forbidden'

I am trying to make maps with RgoogleMaps. My code used to work this morning but now I get this error : map.lyon <- GetMap(center=c(45.77338,4.856039), zoom = 15, destfile = "tile1.png", maptype = "mobile") Error in download.file(url, destfile, mode…
fmarm
  • 4,209
  • 1
  • 17
  • 29
3
votes
1 answer

Importing a Terrain type Google API static map into R without labels

I'm looking to import a Google API static map into R using the GetMap function of the RGoogleMaps package. I then plan to plot data points onto the graph in R using PlotOnStaticMap. I would like to use the "terrain" maptype, but don't want the…
3
votes
1 answer

how to convert RgoogleMaps PNG to SpatialGridDataFrame in R?

I have derived a 'static map' using the GetMap() function from the RgoogleMaps package. I can save it (MyMap) to my harddrive as a PNG. However, then it looses the spatial reference. Has anybody succeeded in creating a spatial object (in the sense…
Jens
  • 2,363
  • 3
  • 28
  • 44
2
votes
1 answer

Problems with reverse geocoding loops with latitude longitude co-ordinates using googleway: r gives the same results for different co-ordinates

Here is my sample dataset (called origAddress): lat lng 1.436316 103.8299 1.375093 103.8516 1.369347 103.8398 1.367353 103.8426 I have many more rows of latitude and longitude numbers (330) and I would like to find the address. I have used…
2
votes
3 answers

Boundary polygon of lat lon collection

I have a table containing all the latitudes and longitudes of some locations in a city called queryResult and I do the following: 1 - Get the Raster map of the city[Blackpool for instance] cityMapRaster = get_map(location = 'Blackpool', zoom = 12,…
MHOOS
  • 5,146
  • 11
  • 39
  • 74
1
2 3 4