शुरू करेंमुफ़्त में शुरू करें

Getting simple feature geometry

tidycensus can obtain simple feature geometry for many geographies by adding the argument geometry = TRUE. In this exercise, you'll obtain a dataset of median housing values for owner-occupied units by Census tract in Orange County, California with simple feature geometry included.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Analyzing US Census Data in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Use the get_acs() function to get a dataset of median owner-occupied housing value by Census tract.
  • Set geometry = TRUE to request Census tract simple feature geometry.
  • Plot the estimate to view a map of the data.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

library(tidycensus)
library(tidyverse)
library(sf)

# Get dataset with geometry set to TRUE
orange_value <- ___(___ = "tract", state = "CA", 
                    county = "Orange", 
                    ___ = "B25077_001", 
                    ___ = TRUE)

# Plot the estimate to view a map of the data
___(orange_value["estimate"])
कोड संपादित करें और चलाएँ