Skip to content

kanishkamisra/kani

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Personal R Package to help me in my analysis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages