Skip to content

Instantly share code, notes, and snippets.

View aousabdo's full-sized avatar
💭
I may be slow to respond.

aousabdo aousabdo

💭
I may be slow to respond.
View GitHub Profile
library(ggplot2)
library(gridExtra)
mtcars$cyl <- ordered(mtcars$cyl)
p <- ggplot(mtcars, aes(mpg, hp, colour = cyl)) + geom_point()
p1 <- p + theme(legend.position = "none")
p2 <- ggplot(mtcars, aes(x=mpg, group=cyl, colour=cyl))
p2 <- p2 + stat_density(fill = NA, position="dodge")