Created
December 17, 2020 10:42
-
-
Save darioappsilon/9a43d3857ae7bb21b56852a3a67ee710 to your computer and use it in GitHub Desktop.
009_scatter_plots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ggplot(mtcars, aes(x = mpg, y = hp)) + | |
geom_point(color = "#0099f9", size = 5) + | |
geom_point(aes(size = qsec, color = cyl)) + | |
labs( | |
title = "Miles per Gallon vs. Horse Power", | |
subtitle = "Color - Number of cylinders; Size - 1/4 mile time", | |
caption = "Source: MTCars dataset" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment