Introduction to Data Analysis Using R 35 Min Lecture
Introduction to Data Analysis Using R 35 Min Lecture
Analysis in R
Presented for the APSA Committee on
the Status of Graduate Students
• https://posit.co/download/rstudio-deskt
op/
• Choose any mirror, closer ones will be
faster
Basic R Concepts
• There are multiple windows open in the editor—let’s go
over each one
• Active code
• Data objects
• Console and terminal
• Packages, plot viewer, and ?help
Basic R Concepts (continued)
• Look at top toolbar
• Change visual look of editor
• Change working directory
• 99% of the time, I’m using ggplot (from tidyverse) for these
tasks
• Ggplot(data = [dataframe_name], aes(x = variable1, y =
variable2)) +
• Geom_bar() + (or Geom_point, Geom_line, geom_raster)
• title() + … etc etc.