-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
52 lines (38 loc) · 1.38 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# benelib <img src="man/figures/logo.png" width = "160" align="right"/>
<!-- badges: start -->
[![R-CMD-check](https://github.com/benediktclaus/benelib/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/benediktclaus/benelib/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
## My personal R library
The goal of `benelib` is to make my life considerably easier. This package includes various helper functions for `ggplot2` plots, RStudio projects or R Markdown templates and a few things more.
## Installation
You can install and loaded the released version of `benelib` from [GitHub](https://github.com/) with:
```{r eval=FALSE}
# install.packages("devtools")
devtools::install_github("benediktclaus/benelib")
library(benelib)
```
## Examples
### ggplot2 Colors and Fills
One of the main reasons for this package to exist is the ability to change `ggplot2`'s default color and fill scales to a given corporate design.
```{r include=FALSE}
library(benelib)
```
```{r example-color-scale}
library(ggplot2)
use_personal_theme()
palmer_penguins %>%
ggplot(aes(bill_length_mm, bill_depth_mm, color = species)) +
geom_point()
```