Skip to main content

All Questions

Tagged with
-2 votes
0 answers
26 views

Mapping Values using modern packages [closed]

I do have two different tables. How can I put radiant_team_name based on radiant_team_id that will be based on team_id from the second table? Thank you! I tried to do mapvalues function from plyr and ...
George's user avatar
  • 5
2 votes
1 answer
28 views

Why does mapboxapi return a skewed map with apparently incorrect latitude and misplaced relative to data?

I am trying to create several maps across wide latitudinal extents. I am using the Mapbox maps through mapboxapi in R. I would like to know how to do this correctly so that both the map and the data I ...
Tess H's user avatar
  • 47
2 votes
1 answer
35 views

Rotating/angle of ggplot key_glpyh, custom legend key glyph

I am trying to emulate a plot style ive seen online, created by Chris Canipe (https://www.axios.com/2017/12/15/the-flow-of-goods-between-states-1513304375). Looking at trade flows, I've managed to ...
Rupert Stacy's user avatar
1 vote
2 answers
75 views

Map projections using ggplot

I used Chatgpt to make a plot based on the following: Using R, I want to create an array with 50x50 grid cells with 10 degrees spacing east-west (x coordinate) and 10 degrees north-south (y ...
DonQUijote's user avatar
0 votes
1 answer
59 views

Adding Census Tract to a dataframe based on Latitude and Longitude

I have a large dataset, with two of the following columns: Latitude Longitude 39.18207 -76.53715 39.18207 -76.53715 39.17810 -76.52680 39.17810 -76.52680 39.17810 ...
user17073706's user avatar
0 votes
0 answers
45 views

Color mapping incorrectly from shapefile in ggplot

I have this map with a shapefile I built, intersected with species occurrence data. It's mapping correctly except the coloring is wrong. There should only be 1 point of purple, because that would ...
gn-gia's user avatar
  • 11
0 votes
1 answer
58 views

Adding a grid to a map in R [closed]

So I have the following code which creates a map of species occurrence data. I want to overlay and/or add a grid to the map of Xcm by Xcm which I than can use to say how much of the area has data and ...
gn-gia's user avatar
  • 11
0 votes
0 answers
21 views

ggplot and global bathymetry map, missing axis and reference value for latitude and longitude [duplicate]

I'm using a code to plot the position of vents globally, using bathymetry from getNOAA.bathy and data from InterRidge vents database. Anyway, my code for the plot is this: # Plot the map `...
l.gallucci's user avatar
0 votes
0 answers
36 views

Change point shape by group returns error "Shape aesthetic contains invalid values"

I am building a simple map with 3 points that I want to have different symbols but when I try to change the shape by group manually I get an error about shape aesthetics. First a map: library(ggplot2) ...
scrletbgonia's user avatar
0 votes
1 answer
50 views

How to send less data to the client with Shiny/leaflet

I'd like to host a page that visualizes a choropleth map at the Census Tract level in the US. I think because of the fidelity of the data necessary, it is probably best to implement this as some kind ...
ctesta01's user avatar
  • 959
0 votes
1 answer
23 views

Map one column's distinct values to the count of those values in a chart

I'm trying to create a chart with x and y. How can I map one column's distinct values to the count of those values of the same column in a chart. For example If I have a data like this: column_name 1 ...
Assim Aharbi's user avatar
0 votes
1 answer
219 views

Why do I get an error of node stack overflow with ggplot2 (R mapping)?

I am approaching map creation on R for the first time, I tried to extract this db, create a subset and plot it with ggplot but it gives me this error: Error: node stack overflow In addition: There ...
Simona's user avatar
  • 1
0 votes
0 answers
31 views

Mapping county level disease outbreaks in the US, including Alaska, using R

I currently have county level data for amphibian disease outbreaks in the USA which includes events in Alaska. I used the package usmap, and got what I wanted for the lower 48 states but have to find ...
dan c's user avatar
  • 13
0 votes
0 answers
52 views

Best option for showing place names on sf/tmap map in R?

I have mapped several locations in Northern Ireland in R. I am using tmap and sf packages for the first time. There are so many locations that the names of the towns are overlapping when looking at ...
Andy M's user avatar
  • 31
0 votes
1 answer
25 views

Why are my co-ordinates slightly off in my map in R (SF package)?

This is my first time trying to map northing and easting co-ordinates in R using the SF package. The co-ordinates appear to be laid out in the expected shape but they are not sitting on top of the ...
Andy M's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
26