0.00
0.25
0.50
0.75
1.00
2seater
compact
midsize
minivan
pickup
subcompact
suv
Class
Count
Drive
4
f
r
Segmented bar plot of the number of cars in each class by drive type
Bar Plot
Source: mpg dataset from ggplot2 package