Tagged Questions
4
votes
1answer
113 views
GGPlot/GGMap in R: Omit some borders
I'm very new to R and I was just playing around with a project to plot projected population growth of Alabama counties from 2010 to 2020. Here's my code:
dat <- ...
2
votes
1answer
101 views
How to combine an openstreetmap with points in R
I'm just starting off learning R and I'm attempting to create a map that shows the number of students in each town in Connecticut. I've got a .csv of location and enrollment info that looks like this: ...
3
votes
1answer
76 views
How to draw flows in ggplot2 based on a flow matrix
I have commuter flow data from the 2001 Census. I converted it from "flat" to "long" form using melt from the reshape2 R package and placed origins and destinations in the same row because ggplot2 ...
3
votes
2answers
129 views
Getting a map with points, using ggmap and ggplot2
I want a map with points (and other geom_* layers) on it. I get the map, but instead of the points all I get is a warning:
Message d'avis :
Removed 3 rows containing missing values (geom_point).
...
1
vote
1answer
41 views
Breaks are not displayed for scale_gradient when drawing a map
I have a quite simple question I suppose. If I draw a scatter plot like this:
data <- data.frame(lon=runif(100)*3+10, lat=runif(100)*5+42, value=rnorm(100)*100)
ggplot() + geom_point(aes(x=lon, ...
3
votes
1answer
199 views
geom_text() not working when ggmap and geom_point used
HI I am using ggmap and gg_point function to show the measured data in an estuary.
The code that I used is as follows:
library(ggmap)
al1 <- get_map(location = c(lon = -87.525, lat = ...
3
votes
2answers
410 views
Ploting coordinates of multiple points at google map in R
I wanted to plot the coordinates on a google Map in the presence of point id:
Sample of data:
coordinates id
1 (7.1735, 45.8688) 2
2 (7.17254, 45.8689) 3
...
1
vote
1answer
86 views
Error in vpPathFromVector(names) : A viewport path must contain at least one viewport name
Cross posted on Google groups of ggplot:
The below reproducible example of gglocator(ggplot2):
library(ggplot2)
library(ggmap)
df <- data.frame(xvar = 1:10, yvar = 1:10)
qplot(xvar, yvar, data = ...
5
votes
1answer
315 views
Polygons nicely cropping ggplot2/ggmap at different zoom levels
I am playing with a spatial data set (mostly polygons over an area of a city) and I would like to produce different views, based on different levels of zoom.
Everything is fine when I have the plot ...
10
votes
1answer
441 views
Justification of multiple legends in ggmap/ggplot2
I am trying to make a map with two legends denoting shape and colour ("Type" and "Org" in the example below), and have the legends inset. I can place the legends, but I would like them to be left ...
4
votes
1answer
455 views
R ggplot2/ggmap concentric circles as points
I am trying to plot some information that shows full population and then a subset of that population by location on a map. I've seen data visualizations that use concentric circles or 3-d inverted ...
1
vote
1answer
113 views
Map displayed on R's widget doesn't get maximized when run through Qt
When I load a map on R's widget (through ggmap) and run the program directly though R's console, the map gets properly maximized when I maximize the R's window.
The same doesn't happen when I run R ...
5
votes
1answer
408 views
ggmap doesn't show maps
I have the following code:
library(ggmap)
ggmap(get_map(location=c(lon = 5.218922, lat = 52.342366), zoom =14))
Which by my account should work fine, but I only get a standard ggplot2 image (grey ...
3
votes
1answer
289 views
saving image in ggplot & ggmap
i have saved an image using ggsave function which look as below
but i want to have output like this
al1 <- get_map(location = c(lon = -86.304474, lat = 32.362563), zoom = 11, maptype = ...
10
votes
2answers
1k views
World map with ggmap
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 ...