Questions tagged [tigris]

59 questions
7
votes
2 answers

geom_sf mapping points/shapes

I am using the Tigris package to download shape files with the code, options(tigris_class = "SF") While I can easily map polygons ggplot(data=zctas) + geom_sf(aes()) I am struggling to create a marker/point instead of a filled polygon (for…
JaneA
  • 87
  • 1
  • 1
  • 6
5
votes
0 answers

Leaflet R performance issues with large map

I'm wondering if anyone else has experienced similar issues when plotting a large number of markers and polygons using leaflet package in R. This is what it normally should look like: However, when I zoom in/out of the map, the polygons and markers…
Sean
  • 51
  • 4
3
votes
2 answers

Get Census Tract from Lat/Lon using tigris

I have a relatively large number of coordinates for which I'd like to get the census tract (in addition to the FIPS code). I know that I can look up individual lat/lon pairs using call_geolocator_latlon (as done here), but this seems impractical for…
mlinegar
  • 1,389
  • 1
  • 11
  • 19
3
votes
2 answers

st_intersects errors for st_crs(x) == st_crs(y) is not TRUE

library(tidyverse) library(tigris) library(sf) santacruz <- tracts("CA", "Santa Cruz") coords_sf <- locations %>% st_as_sf(coords = c("Longitude", "Latitude"), crs=4269) This should have the same CRS, but when I try st_intersects(coords_sf,…
Dobrowski
  • 48
  • 1
  • 1
  • 6
3
votes
3 answers

How do I find all the US Census Tracts in a Place in R?

There are several R packages that make working with US Census data easier. The two I use most frequently are tigris(for loading the spatial data) and acs (for loading the tabular data). However, one problem I keep running into is that I can't figure…
Tiernan
  • 828
  • 8
  • 20
2
votes
5 answers

Searching old code that was hosted on tigris.org: svnwcrev-1.0.tar.gz

Once upon a time there was the open source collaboration platform tigris.org. Tigris.org will shut down on July 2020 and is not accessible anymore. I need an old file from it for a commercial project: svnwcrev-1.0.tar.gz svn checkout…
Roelof
  • 864
  • 5
  • 12
2
votes
1 answer

How to solve tigris::call_geolocator() Internal Server Error (HTTP 500) error?

I wanted to get the Census Codes for a city from the addresses in my data. The problem is that I couldn't find workable shapefiles for Gainesville, FL. So I was trying to get the Census Codes using the addresses of the people who took the survey,…
CaseebRamos
  • 684
  • 3
  • 18
2
votes
1 answer

coord_sf forces ggplot grid lines?

I'm using ggplot2 and the sf and tigris packages to draw some maps (with geom_sf()). I was finding that I couldn't turn off grid lines, despite calling theme(panel.grid = element_blank()) and it seems like it's due to using coord_sf. Here's a…
arvi1000
  • 9,393
  • 2
  • 42
  • 52
2
votes
2 answers

st_intersection to spatialpolygon dataframe not working

I am trying to get the intersection of two shapefiles (census tracts that fall within the boundaries of certain metropolitan areas). I am able to successfully get the intersecting features, however when I try to convert the output of sf_intersect to…
asado23
  • 366
  • 1
  • 7
  • 20
2
votes
1 answer

How do I use R to download data from American Fact Finder?

In a question related to my previous question, I would like to know how to download data from American Fact Finder. According to the American Fact Finder Deep-linking guide, the http path to the links is quite regular, and remains consistent over…
Mox
  • 511
  • 5
  • 15
2
votes
1 answer

SVN in Mac OS - unable to open ra_local session, url contains unsupported hostname issue

I want to checkout files from an SVN repository which is installed in a windows machine. My system is Mac OS X.. I have installed tigris scPlugin and used the following repository URLs Repository URL -…
vcaz konzam
  • 143
  • 2
  • 8
1
vote
3 answers

Plot two counties side by side while preserving scale

Is there a way to plot the two counties side by side (without changing actual scale) to compare their sizes. I wish to plot San Diego and Santa Clara side by side to demonstrate their actual size. Thanks library(tigris) library(ggplot2) san_diego…
SiH
  • 1,378
  • 4
  • 18
1
vote
2 answers

How to create a map using zip codes in R?

I'm trying to make a graph of California based on zip codes because I have some data that are based on them. I've tried excel-geography to plot but they only plotted a portion of zip codes with confidence. Recently, I learned a mapping package in R…
Yvonne
  • 15
  • 5
1
vote
2 answers

How to get rid of the "Error in CPL_write_ogr" error when using "st_write" to export a sf object?

I'm trying to intersect two sf objects for the US (one at the township level and the other one at the census tract level). I'm getting both using tigris and tidycensys. My final goal is to have an unique sf object with information at the township…
1
vote
2 answers

How to create a tigris map with zip codes shaded based on a value?

I'm trying to use the tigris package in R to make a map of Douglas County, Colorado. The goal is to show Douglas County divided by the zip codes inside of it, and to have each zip code shaded based on a value. The variables I have right now in my…
Matt
  • 25
  • 4
1
2 3 4