A test dataset containing vehicle ownership rates in the seven county region of northeastern Illinois.

vehicle_ownership

Format

A tibble. 40 rows and 3 variables

county

Char. Name of county

number_of_veh

Char. Number of vehicles owned by household

pct

Numeric. Share of households with the given number of vehicles (values between 0 and 1)

Examples

# A stacked bar chart
ggplot(vehicle_ownership,
       aes(x = county, y = pct, fill = number_of_veh)) +
   geom_bar(position = position_stack(), stat = "identity")