Here is the list of the variables included in the mtcars dataframe.
This is the formula to calculate the Miles per gallon. \[ mpg = \frac{miles\;traveled}{gallons\;of\;gas} \]
This is the visualization of the miles per gallon for the cars included in the mtcars dataset.
hist(mtcars$mpg, main = "mpg of mtcars data", ylab = "number of cars", xlab = "Miles per gallon")