ggmap Questions

2

Solved

I have a ggplot map, for example: library(ggmap) ggmap(get_map()) I'd like the axis labels to be automatically labeled as N-S / W-E: in the above case, for example, instead of lon -95.4 it shoul...
Flipflop asked 23/10, 2015 at 12:31

1

Solved

I am trying to have two different fill colors for each US state based on two different columns of my dataset. For this, I am using the counties and coloring half of them which are below the state c...
Realistic asked 14/9, 2022 at 3:6

3

I'm trying to call a map from google maps using ggmap. Example code: get_googlemap(center = c(lon = -56.67, lat = 51.47), zoom = 8, size = c(640, 640), scale = 2, format = "png8", maptype = "sat...
Glaze asked 4/2, 2020 at 15:58

3

I tried the following code: library(ggplot2) library(ggmap) library(sf) nc <- st_read(system.file("shape/nc.shp", package = "sf")) str(nc) Classes ‘sf’ and 'data.frame': 100 obs. of 15 variab...
Ave asked 11/12, 2017 at 8:43

1

Solved

I've started using the package ggmap after a while again, now I'm encountering a problem when I try to fetch a map using the function get_map. No matter which source I specify, I always get the err...
Cicerone asked 26/10, 2019 at 18:20

0

This is a followup question on How to create animation of vehicle moving form A to B along a route?. I could learn how to animate vehicles moving from A to B along the route. Thanks for the help! B...
Knowing asked 24/8, 2021 at 14:16

3

Solved

I have a list of cities and related information that I've placed in a dataframe, like so: library(plyr) library(dplyr) library(ggmap) library(Imap) cities <- c("washington, dc", &quot...
Orcinol asked 18/6, 2021 at 14:46

3

Solved

I'm trying to make a map of my study site using ggmap & Stamen maps. I've seen a few similar questions but haven't figured out a way to incorporate the solution into my Stamen map code. I have...
Squib asked 29/5, 2020 at 17:5

2

Solved

I was wondering if anyone knows how to keep the google copyright information on maps plotted (with a new scale) by ggmap in R? For example: library(ggmap) library(ggplot2) # download basemap ggmap...
Norinenorita asked 19/10, 2020 at 10:59

5

Solved

I have a map with the 8 points plotted on it: library(ggplot2) library(ggmap) data = data.frame( ID = as.numeric(c(1:8)), longitude = as.numeric(c(-63.27462, -63.26499, -63.25658, -63.2519, -63....
Hormone asked 9/12, 2015 at 15:47

3

Solved

I am trying to use GGmap to create a plot of vehicle car crashes by state. The map will have dots which are sized based on the number of car crashes in the state. In particular I am trying to recr...
Axel asked 25/1, 2019 at 9:8

2

I am trying to show the individual points in a given place, like a map equivalent of dot plot. I tried with leaflet library in R, but I am only able to map the size of the marker to the continuous ...
Fever asked 11/4, 2020 at 17:0

2

Solved

I am trying to plot vertical bar plots over a map. I went through examples online but somehow not being able to. My data is currently in this format: University| Count | Category | lat | long ...
Pedi asked 9/12, 2013 at 7:9

1

Solved

I would like to create a map of the US showing both state and county boundaries (i.e. state boundaries in a different color). I typically do this using either shape files that I import or using ggp...
Yarkand asked 22/1, 2020 at 2:30

3

Solved

I'm trying to plot a static base map underneath my sf object (for print). When using ggmap I first get a lot of errors, then I can't seem to figure out how to chain the base map to my ggplot2 objec...
Flintlock asked 3/4, 2018 at 9:9

2

Solved

I am a complete novice with spacial data. I have the following code that successfully plots a bounded map. I would like to add, as points the data.frame stores. I apologize in advance for not being...
Dotson asked 15/6, 2012 at 19:5

4

Solved

I am trying to plot my coordinates using R. I have tried already to follow different post (R: Plot grouped coordinates on world map ; Plotting coordinates of multiple points at google map in R) but...
Herpes asked 17/4, 2014 at 10:24

4

I am using ggmap and wish to have a map of the world centered on Australia to which I can easily plot geocoded points. ggmap seems to be a lot easier to use compared to some of the other mapping pa...
Dematerialize asked 26/6, 2012 at 6:44

2

I normally use ggmap to plot points on a simple city map. When doing this today I came up on a new error that forbids me to use the function get_map() #get API key @ https://developers.google.com...
Albano asked 23/7, 2018 at 15:2

4

I have been facing this issue in the get_map() function (ggmap library) in R. My code was running without the need to specify an API key (for source = "google") for several months. However, the ...
Enchain asked 29/9, 2018 at 5:40

1

I would like to create a world map in R. I'm somewhat familiar with ggmap, so I tried something like this: ggmap(get_googlemap(center=c(83,25), zoom=1, scale=4, filename="world", size=c(640,300))...
Strake asked 17/10, 2013 at 22:18

3

About 90% of the time, when using get_map in ggmap, I get the following error. Can someone please tell me why? map <- get_map(location = 'Australia', zoom = 4) Error in download.file(url, d...
Oxeyed asked 7/11, 2013 at 3:40

1

Solved

I have a dataset with longitude and latitude coordinates. I want to retrieve the corresponding census tract. Is there a dataset or api that would allow me to do this? My dataset looks like ...
Dermatoglyphics asked 24/7, 2018 at 13:6

3

Solved

I made static heatmaps with the library(ggmap) and the stat_density2d() function. Looking to recreate this in a shiny app on a dynamic leaflet map, I found addHeatmap(). However, the resulting imag...
Blissful asked 25/6, 2017 at 18:31

1

Solved

I'm plotting point data on a map and would like to scale point size and fill to another column. However, ggplot produces two separate legends for size and fill, where I only want one. I have ...
Flagella asked 14/6, 2018 at 16:25

© 2022 - 2024 — McMap. All rights reserved.