mtcarsplot(
x = mtcars$hp,
y = mtcars$mpg,
xlab = "Horsepower (hp)",
ylab = "Miles per Gallon (mpg)",
main = "Fuel Efficiency (mpg) vs Horsepower (hp)"
)
The scatter plot shows a negative relationship between horsepower and
miles per gallon. As horsepower increases, fuel efficiency generally
decreases.