All Questions
19
questions
1
vote
1
answer
196
views
ggmap legend not showing
I have two dataframes both recording the top 10 stations riders went. One is for casual rider, the other one is for member rider. Both dataframes contain column 'station','freq','latitude','longitude'....
0
votes
1
answer
54
views
Add legend for every point on ggmap instead of a group variable
I've got the following data frame:
df1 <- structure(list(City = c("Ahmadnagar", "Ahmedabad", "Akola", "Amaravati",
"Aurangabad", "Belgaum&...
1
vote
1
answer
118
views
Adding legend when mapping residuals in ggplot
I have been trying to add a legend for the residuals but don't know where to place the code to make it work.
Here is the map of residuals but with no legend:
ggplot(lat_long, aes(lat_long$...
0
votes
0
answers
108
views
Need helping changing legend title in ggmap using scale_color_gradient2 [duplicate]
I have created a ggmap with points sized and color coded by "count". Therefore, the legend displays "count" as the title when I would like it to be "Visitors". Here is the code:
ggmap(sites_map) +
...
0
votes
0
answers
64
views
Can´t make gg-plot show legend correct in R
I am computing a central warehouse problem and need help to visualize the result.
I have a dataset with coordinates for local warehouses which I have then made a clustering in kmeans() which provide ...
1
vote
1
answer
3k
views
Adding a legend, scalebar and north arrow to my ggmap
I'd like to add a nice legend to my map that displays the survey names contained within the survey.
Below is the code you will need for the map creation.
getwd()
setwd("/Users/Charmaigne/Desktop")
...
1
vote
1
answer
1k
views
adding legend to ggmap with geom_point positions from different datasets
I've been plotting two sets of positional data with geom_point from different data sets (MR + MRTag).
MR
detect_date Latitude Longitude species
12/04/2016 11:08 -6.6524 71.3475 ...
1
vote
1
answer
4k
views
Add legend to ggmap
I am trying to add a legend to a plot generated by ggmap package in R. The dataset I am working with is
Latitude Longitude amount
61.37072 -152.40442 436774
32.80667 -86.79113 3921030
...
0
votes
1
answer
98
views
How can I include a reference table or legend for a geom_point geographical map?
I am generating a map very similar to this
(source: dominodatalab.com)
] to visualize the frequency in which cities occur. How can I create a legend or key for this map so I can see what the size of ...
1
vote
1
answer
2k
views
Add a legend to the ggmap
I am trying to add a legend to a ggmap like here. It looks very good. But the first problem is, that scale_colour_continuous is only for two colour, but I need to use three colours. Secondly, event ...
0
votes
2
answers
3k
views
ggplot2 ggmap, R legend editing
Here is
code sample:
require(rgdal)
require(ggmap)
require(maptools)
library(RColorBrewer)
polska <- get_map(
location=c(lon=20.9589934, lat=53.5149404),
zoom=7,
maptype="roadmap"
)
...
2
votes
1
answer
532
views
Adding a second legend with ggmap
I am trying to build a map which includes points of different color and size. I managed to add a legend for the color, but I cannot figure why the size scale doesn't show up. I made 3 attempts, each ...
2
votes
1
answer
330
views
ggmap and ggplot2 map putting lines across point legend symbols
My code works perfectly fine for making this heat map, but in the legend there are lines through the symbols for "First" and "Second." Has anyone encountered this before and know how to remove the ...
2
votes
0
answers
1k
views
R ggmap legend/guide issues with multiple layers
I have been trying to create a map of membership locations from postcodes across the UK as a project in learning R. I have achieved nearly the result I wanted, but it's proving very frustrating ...
-2
votes
1
answer
430
views
ploting ggmap with geom Points (lat_long) annotated 1 to19. Points data is in CSVfile
I am plotting with ggmap and ggplot2 using geom_point. I want to add annotation text (i.e., 1 to 19) close to the points as well.
Here is my code:
setwd("../Documents/MAPS")
library(ggplot2)
library(...