CSV Reading with readr (6/10/2024)

Author

Mithru Narayan Naidu

plot <- read_csv("data/nyc_tracts.csv")
Rows: 2242 Columns: 3
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): tract, race
dbl (1): med_income

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
plot |>
  ggplot(mapping = aes(x = race,
                       y = med_income)) +
  geom_point(alpha = 0.5) + 
  labs(title = "Race and Median Income connection",
       subtitle = "graph",
       x = "Race",
       y = "Median Income")
Warning: Removed 41 rows containing missing values or values outside the scale range
(`geom_point()`).