R Package Containing Utility Functions And Themes For Personal Use
This Package contains:
Install development version from GitHub with:
# install.packages("devtools")
devtools::install_github("maxhuebner/hubnR")
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().
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.