# Load the built-in dataset
data(mtcars)
# Create scatter plot
plot(mtcars$hp, mtcars$mpg,
xlab = "Horsepower (hp)",
ylab = "Miles Per Gallon (mpg)",
main = "Relationship Between Horsepower and Fuel Efficiency",
pch = 19, # Solid circles
col = "blue")
There is a slight negative relationship between mpg and hp