Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 956 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 956 Bytes

kani

Personal R Package to help me in my analysis

Installation

devtools::install_github("kanishkamisra/kani")

Example

  • 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")

ggplot_vanila

  • 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()

ggplot_kani

To-do

  • Change axis.x and axis.y text element sizes.
  • Add more colors in scales.
  • Add multiple options for theme bg.