# Create scatter plot using base R
plot(x = mtcars$hp,
y = mtcars$mpg,
xlab = "Horsepower (hp)",
ylab = "Miles Per Gallon (mpg)",
main = "MPG vs. Horsepower: Vehicle Efficiency Analysis",
pch = 19, # Solid circles
col = "blue")
The scatter plot shows a negative relationship between horsepower and miles per gallon. When horsepower increases, miles per gallon decreases, which can lead to the conclusion that cars with higher power will be less fuel efficient. Overall, vehicles with lower HP will achieve higher MPG, while vehicles with higher HP will have lower MPG numbers.