Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Run the below code to get the graph. The graph represents speed of car
# vs distance it travels before stopping (when brakes are applied)
# In this graph, write an insight stating that "The faster the car,
# the longer it takes to stop"
gg <- ggplot(data=cars, aes(x=speed, y=dist, size=dist)) +
geom_point() +
geom_smooth() +
labs(title="Cars", x="Speed", y="Dist")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment