Questions tagged [tigris]

59 questions
1
vote
1 answer

How to change the border color of a polygon based on an attribute value in R tmap

I am trying to create a map using R's tmap package that has a different color outline for each value of an attribute. When filling the polygons, for example, I can simply do tm_polygons(col = "variable") to get a map that fills the polygons based on…
z_11122
  • 153
  • 8
1
vote
1 answer

Can I map specific blocks using Tidycensus and Tigris?

I'm trying to map data for four blocks using R packages Tidycensus and Tigris. I wonder if it possible to specify the blocks you want to map, or if one must map the entire County? Could I add a line to the above code to specify the blocks I want to…
1
vote
1 answer

Why am I unable to build data frame with census block and lat/long outline?

I am new to R and working with census data and I am trying to build a csv file that can be passed to another team that shows the lat/long outline of census blocks. With this I can get to 3 specific census blocks in Florida. FL_blocks <- blocks("FL",…
MJ_215
  • 13
  • 2
1
vote
0 answers

Mapview reset button and centering map to initial location

I'm new to R and trying to work with mapview. I cant find a way to add a reset button or center and scale the map to a location. For instance, right now I'm tring to use the Tigris package and merge it with a census data file I downloaded.I want to…
anonymous
  • 11
  • 1
1
vote
1 answer

Can we create more than one user account for an application that uses Tigris subversion?

We have a java SWT based application that uses Tigris subversion (org.tigris.subversion). Currently we have one user name and password with admin privileges for everyone that uses the above mentioned application. We now desire to create another user…
1
vote
0 answers

R - Add Tigris SF Shapefile to ggmap

I am trying to add shapefiles on top of a ggmap object. Specifically, I would like to use Simple Feature (SF) shapefiles downloaded from the R package Tigris. I have tried to overlay these on Stamen and Google Maps from ggmap. Packages…
Chris Kiniry
  • 499
  • 3
  • 13
1
vote
1 answer

Running tigris package from terminal

I posted this question the other week but it didn't get any response, hope it's okay to post again. Here's some code: #!/usr/bin/Rscript --vanilla library(tigris) shp <- tracts(state = 'New York', county = 'New York') print(shp) I can run this…
psadosky
  • 89
  • 5
1
vote
1 answer

XMLMASSUPDATE MSBUILD Tigris Tasks

I am trying to set the compiler options attribute from a value to blank using the msbuild task of xmlmassupdate. Unfortunately it is only changing the c# (the first one) and not the second one. Does anyone know the syntax for xmlmassupdate to do…
Xander
  • 9,069
  • 14
  • 70
  • 129
0
votes
1 answer

Use merge to combine shapefile and data to map using US zip codes

I'm trying to make a map based on zip codes in California, US. Using the solution from my previous question (How to create a map using zip codes in R?), I obtained CA zip codes using: library(tigris) library(ggplot2) zipcode <- zctas(year = 2000,…
Yvonne
  • 15
  • 5
0
votes
0 answers

Why is there no output for mapview() command in R 4.2.2 (August 2023)?

After installing the "mapview" package in R 4.2.2 and importing its library into a Jupyter notebook, I cannot create any maps. Although the data is loaded, any attempt to render a map figure when running a code block results in no output and no…
0
votes
0 answers

tigris::shift_geometry() "Error: crs not found: is it missing?"

I am trying to pull the USA map with Alaska, Hawaii, and Puerto Rico all in one area. I can pull the counties map fine, but when I use shift_geometry, then I get an error, "Error: crs not found: is it missing?" Below is my…
Isa
  • 1
  • 1
0
votes
1 answer

Is it possible to condense a county-level map of the US, including Alaska and Hawaii, using certain shapefiles?

I am working on a project that requires me to map out all counties for all 50 states of the US. So far I was partially successful in mapping out my data. The issue I am running into is that with my code, Alaska and Hawaii are extremely spread out…
0
votes
2 answers

Adjust value of sfc_POINT in R

For the U.S., I can get the centroids of all the counties in a state. However, upon closer inspection, the centroid of some counties is not correct. How can I manually correct the point geometry (latitude and longitude) for a given county? Example…
tassones
  • 891
  • 5
  • 18
0
votes
2 answers

Can't get regional geometries to work with maps of the US (R)

TLDR: Trying to graph some simple US data by census regions and I wanted to put an outline surrounding the regions, but I can't seem to get the regional shapefiles to work. Hi All, I'm new to graphing geographic data in R and am trying something…
0
votes
0 answers

How to get county name from US addresses

I have the firm addresses and would like to know which county it belongs to. What kind of package should I use to get it done efficiently? I have over 40000 addresses. I am trying tigris and censusxy now but not sure how to do it. The issue with…
Jane
  • 91
  • 4