Skip to content

cenuno/Spatial_Visualizations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spatial_Visualizations

Tutorials regarding spatial visualization and analysis.


Mapping the CTA "El" Train Stations

Tutorial on how to plot the Chicago Transportation Authority (CTA) 'L' Rail Line, Rail Stations, Bus Routes, and Bus Stops for the City of Chicago.


Point-n-Polygon

What follows is a tutorial on the key spatial elements needed to understand how to identify points which reside in specific polygons.


Querying USAspending API data from RStudio

USAspending API offers an interactive way for active citizens to query relevant federal spending data on a variety of fields. People can query data by geography, type of federal spending, CFDA program number, and much more. Click here a tutorial on querying the data for FY17 Austin, Texas.

Run R Scripts from GitHub and Enable R Objects with 'source_github' function

source_github <- function( url ) {
  # load package
  require(RCurl)
  
  # read script lines from website and evaluate
  script <- getURL(url, ssl.verifypeer = FALSE)
  eval(parse(text = script), envir=.GlobalEnv)
} 

Import RDS files into RStudio

Step 1: ID a .rds file inside a GitHub repository (https://github.com/DataCapstone/Data-Capstone/tree/master/Drafts/ceuno)

Step 2: Once .rds file is found, ID the phrase "View Raw"

Step 3: Right-click on "View Raw"

Step 4: Click on "Copy Link Address" option from the menu

Step 5: Paste the link address into a character vector

rds_url <- "https://github.com/DataCapstone/Data-Capstone/blob/master/Drafts/ceuno/chi_hou_philly_projectgrants_fy17.rds?

Step 6: Nest the character vector into the following functions:

rds.df <- readRDS( gzcon(url( rds_url ) ) )

Step 7: Congratulations!

You now know how to import .rds files into RStudio!


Releases

No releases published

Packages

No packages published

Languages