Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created December 17, 2020 10:42
Show Gist options
  • Save darioappsilon/9a43d3857ae7bb21b56852a3a67ee710 to your computer and use it in GitHub Desktop.
Save darioappsilon/9a43d3857ae7bb21b56852a3a67ee710 to your computer and use it in GitHub Desktop.
009_scatter_plots
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