Personal R Package to help me in my analysis
devtools::install_github("kanishkamisra/kani")
- With vanilla ggplot:
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg, color = factor(gear))) +
geom_point() +
facet_wrap(~am) +
geom_smooth(method = "lm", se = FALSE) +
labs(title = "This is a title", subtitle = "This is a subtitle")
- With the kani theme:
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg, color = factor(gear))) +
geom_point() +
facet_wrap(~am) +
geom_smooth(method = "lm", se = FALSE) +
labs(title = "This is a title", subtitle = "This is a subtitle") +
scale_color_kani() +
theme_kani()
- Change axis.x and axis.y text element sizes.
- Add more colors in scales.
- Add multiple options for theme bg.