Im working with the MPG data set. I am trying to make a bar graph with cylinders (cyl) on the X axis and Highway miles per gallon (hwy) on the y- axis using the code below.
ggplot(data= mpg) +
geom_bar(mapping = aes(x =cyl, y= hwy), stat = "identity")
The Y- values for Hwy in the data set are between ~20-30 mpg, but on my graph the y-axis values range from 0-2000.
Why are the Y- values different in the graph?