Skip to content

Instantly share code, notes, and snippets.

@darioappsilon
Created December 17, 2020 10:43
Show Gist options
  • Save darioappsilon/9d926560175be38af0582c62b21b9b4e to your computer and use it in GitHub Desktop.
Save darioappsilon/9d926560175be38af0582c62b21b9b4e to your computer and use it in GitHub Desktop.
011_scatter_plots
ggplot(mtcars, aes(x = mpg, y = hp)) +
geom_point(color = "#0099f9", size = 5) +
geom_point(aes(size = qsec, color = cyl)) +
labs(
x = "Miles per Gallon",
y = "Horse power"
) +
theme(
axis.title.x = element_text(color = "#0099f9", size = 16, face = "bold"),
axis.title.y = element_text(color = "#0099f9", size = 16, face = "italic")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment