knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  dpi = 180,
  fig.width = 8,
  fig.height = 5
)

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

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 using HubnR-Theme:

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


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