ggmap Questions

1

Solved

When I run the code from the accepted answer (Plot coordinates on map), I get the following error message on the first run after installing ggmap: # loading the required packages library(ggplot2)...
Amazonite asked 17/1, 2017 at 2:42

4

Solved

I'm trying to use the geocode function from the ggmaps library in R to get coordinates for specific locations. I'm able to use the function fine so far. The issue I'm running into is that I would...
Markhor asked 21/12, 2015 at 19:29

0

I am trying to set up a map from ggmap.I have borrowed this line from another script but it is not working for me. I want to specify the boundary of the map. myLocation <- c( -133.50734, ...
Bourassa asked 9/12, 2016 at 18:36

2

Solved

I'm plotting maps using the ggmap package. To download a map over the internet, I can use this code: library(ggmap) get_map(location = c(-1.81, 55.655), zoom = 12, maptype = "hybrid") Is there a...
Year asked 29/5, 2014 at 13:39

3

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] cityMa...
Prepossessing asked 21/10, 2016 at 15:3

2

Solved

There is a very nice interface to google earth images available via ggmap. For example: ggmap::get_map(location = c(lon = -95.3632715, lat = 29.7632836), maptype ="satellite",zoom=20) will re...
Tracietracing asked 29/8, 2016 at 0:24

2

Solved

I am trying to use ggmap to create a map of the protected areas I am working in with a satellite image from google earth underneath. I can make a very satisfactory image except that it lacks a nort...
Conley asked 21/8, 2016 at 19:2

3

Solved

I'm trying to get the Zip codes of a (long) list of Longitude Latitude coordinates by using the revgeodcode function in the ggmap library. My question & data are the same as here: Using revgeo...
Archy asked 7/4, 2014 at 11:51

2

Solved

I am trying to reverse geocode a large data-set (around 100k). I used the revgeocode function from the package ggmap. I got the result for 1 entry 48 Grand View Terrace, San Francisco, CA 94114, ...
Auricle asked 9/5, 2016 at 13:48

1

I'm trying to plot the motion of an entity on a google map as a set of directed lines using ggmap. Currently I'm using the geom_segment call from ggplot2 which does draw the line segments. However ...
Geronto asked 12/5, 2014 at 5:33

1

Solved

I would like to make a map of the Netherlands with curved lines between cities. I have two dataframes number one called: df_verticles which contains 24 cities with their lat/lon combination. The se...
Misinterpret asked 8/4, 2016 at 13:45

1

Solved

I'm trying to create a map of board members for my nonprofit using ggmap. I'm located in San Diego so my code is as follows: mapPoints <- qmap('San Diego, CA', zoom = 10) + geom_point(...
Vestibule asked 28/1, 2016 at 1:33

1

Solved

Is there a way to implement gg_animate in R to produce a gif. I already have my ggmaps created and saved as PDFs. I would like to create an animation which scrolls through those maps maybe holding ...
Murray asked 14/2, 2016 at 23:11

2

Solved

I have the Google map and a list of coordinates with a text label. When I preview this, the labels overlap and thus become unreadable: library(ggmap) WPmap <- qmap(c(lon=4.80324, lat=52.40738),...
Mameluke asked 24/2, 2014 at 10:35

0

Using the example in ggmap: Spatial Visualization with ggplot2, by David Kahle and Hadley Wickham of a filled contour plot of violent crimes (Figure 9 in the linked article), I would like to know i...
Defroster asked 22/1, 2016 at 4:32

2

Solved

I want to plot a map with a raster overlaying a GoogleMaps base map in ggplot2. Therefore, I used get_map() and insert_raster() like this: library(ggplot2) library(ggmap) bm <- ggmap(get_map(l...
Unlock asked 4/11, 2015 at 19:7

2

Solved

I have been stuck with this for hours. When I run this : library(ggmap) set.seed(1) n=100 df <- data.frame(x=rnorm(n, 0, 1), y=rnorm(n, 0, 1)) TestData <- ggplot (data = df) + stat_densit...
Decapod asked 22/12, 2015 at 7:58

1

Solved

I'm using library(choroplethr) for some market analysis and I have some questions about making my county_choropleth and either overlaying it on top of a ggmap() or using reference_map=TRUE in my co...
Execrable asked 8/12, 2015 at 14:25

1

Solved

I am trying to fix the following problem. I use ggplot2 to plot a map of an island: island = get_map(location = c(lon = -63.247593, lat = 17.631598), zoom = 14, maptype = "satellite") islandMap =...
Westerly asked 8/12, 2015 at 14:45

2

Not that it's critical to my question, but here is my plot example, on top of which I'd like to add a scale bar. ggmap(get_map(location = "Kinston, NC", zoom = 12, maptype = 'hybrid')) + geom_poin...
Liverwurst asked 8/8, 2013 at 21:28

1

Created a choropleth using ggplot2. Here's the ggplot code okc <- ggplot() + geom_polygon(data = mapdata, aes(x = long, y = lat, group = group, fill = B19013_001), color = "black", size = 0.5...
Introspect asked 16/10, 2015 at 4:22

2

Solved

I'm unsure why none of my data points show up on the map. Store_ID visits CRIND_CC ISCC EBITDAR top_bottom Latitude Longitude (int) (int) (int) (int) (dbl) (chr) (fctr) (fctr) 1 92 348 14819 390...
Gytle asked 1/10, 2015 at 16:12

1

Solved

I'm assuming the Raster package has what I need... I'm simply wanting to invert the colors in a Raster image. The actual scenario is this: I want to invert the raster image returned by a ggmap cal...
Papageno asked 8/9, 2015 at 18:18

1

I am using R package ggmap. ?get_map says: location: an address, longitude/latitude pair (in that order), or left/bottom/right/top bounding box My code: library(ggmap) library(mapproj) lat...
Lantana asked 27/2, 2015 at 13:48

2

Solved

I want to plot lines (to be precise: geom_segment element) on my ggmap object (which is a ggplot2 object, as I understand). I use the following code: library(ggmap) mapImageData <- get_map(...
Muzz asked 8/6, 2014 at 17:57

© 2022 - 2024 — McMap. All rights reserved.