README.md

hubnR

R Package Containing Utility Functions And Themes For Personal Use

This Package contains:

Installation

Install development version from GitHub with:

# install.packages("devtools")
devtools::install_github("maxhuebner/hubnR")

Load and Setup

This is a basic example which shows you how to solve a common problem:

library(hubnR)
setup_font_use() #To Load Font
#> Arial Black already registered with windowsFonts().
#> Arial already registered with windowsFonts().
#> Bahnschrift already registered with windowsFonts().
#> Calibri already registered with windowsFonts().
#> Calibri Light already registered with windowsFonts().
#> Cambria already registered with windowsFonts().
#> Candara already registered with windowsFonts().
#> Candara Light already registered with windowsFonts().
#> Comic Sans MS already registered with windowsFonts().
#> Consolas already registered with windowsFonts().

Theme Example

Here is a plot without using the Theme:

mtcars %>%
  ggplot(aes(mpg, cyl, color = as_factor(gear))) +
  geom_point() +
  labs(title = "title", subtitle = "Testing Subtitle")

plot of chunk standard theme

Plot using HubnR-Theme:

mtcars %>%
  ggplot(aes(mpg, cyl, color = as_factor(gear))) +
  geom_point() +
  labs(title = "title", subtitle = "Testing Subtitle") + 
  theme_hubnr() #theme_plex()

plot of chunk hubnr theme



maxhuebner/hubnR documentation built on Jan. 3, 2022, 2:30 a.m.