Skip to content

Instantly share code, notes, and snippets.

@BenjaminHolland
Created February 9, 2019 18:32
Show Gist options
  • Save BenjaminHolland/7f2e3caecae7c4e413fa1f2c81698416 to your computer and use it in GitHub Desktop.
Save BenjaminHolland/7f2e3caecae7c4e413fa1f2c81698416 to your computer and use it in GitHub Desktop.
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width)) +
geom_point(aes(color=Species, shape=Species)) +
xlab("Sepal Length (cm)") + ylab("Sepal Width (cm)") +
ggtitle("Sepal Length vs Width", subtitle="A plot for class") +
geom_vline(linetype= "dashed", aes(xintercept=mean(Sepal.Length), color="red"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment