Skip to content

Commit

Permalink
House cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktclaus committed Dec 15, 2023
1 parent 2b9685c commit 1585fbb
Show file tree
Hide file tree
Showing 23 changed files with 1,974 additions and 1,058 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: benelib
Type: Package
Title: Helper Functions for My R Workflow
Version: 1.3.0
Version: 2.0.0
Authors@R: person("Benedikt B.", "Claus", email = "[email protected]", role = c("cre", "aut"), comment = c(ORCID = "0000-0001-9501-0954"))
Description: Various helper functions for commonly executed tasks and color schemes for my scientific workflow.
URL: https://benediktclaus.github.io/benelib
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(to_tibble)
export(tr_mean_se)
export(use_analysis_template)
export(use_base_theme)
export(use_carto_theme)
export(use_custom_folder)
export(use_custom_theme)
export(use_data_cleaning_template)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# benelib 2.0.0
* Package house-cleaning

# benelib 1.3.0
* Include new CARTO themes function `use_carto_theme()`

Expand Down
14 changes: 1 addition & 13 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ knitr::opts_chunk$set(
# benelib <img src="man/figures/logo.png" width = "160" align="right"/>

<!-- badges: start -->
[![R-CMD-check](https://github.com/benediktclaus/benelib/workflows/R-CMD-check/badge.svg)](https://github.com/benediktclaus/benelib/actions)
[![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 -->

Expand All @@ -36,7 +35,7 @@ library(benelib)

## Examples
### ggplot2 Colors and Fills
One of the main reasons for this package to exist is the abilty to change `ggplot2`'s default color and fill scales to a given corporate design.
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)
Expand All @@ -51,14 +50,3 @@ palmer_penguins %>%
ggplot(aes(bill_length_mm, bill_depth_mm, color = species)) +
geom_point()
```

### Plot themes
Another nice addition is my personal `ggplot2` theme.

```{r example-theme}
palmer_penguins %>%
ggplot(aes(bill_length_mm, bill_depth_mm, color = species)) +
geom_point() +
theme_bene()
```

20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<!-- badges: start -->

[![R-CMD-check](https://github.com/benediktclaus/benelib/workflows/R-CMD-check/badge.svg)](https://github.com/benediktclaus/benelib/actions)
[![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 -->

Expand All @@ -30,7 +29,7 @@ library(benelib)

### ggplot2 Colors and Fills

One of the main reasons for this package to exist is the abilty to
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.

Expand All @@ -41,23 +40,6 @@ use_personal_theme()
palmer_penguins %>%
ggplot(aes(bill_length_mm, bill_depth_mm, color = species)) +
geom_point()
#> Warning in check_font_path(italic, "italic"): 'italic' should be a length-one
#> vector, using the first element
```

<img src="man/figures/README-example-color-scale-1.png" width="100%" />

### Plot themes

Another nice addition is my personal `ggplot2` theme.

``` r
palmer_penguins %>%
ggplot(aes(bill_length_mm, bill_depth_mm, color = species)) +
geom_point() +
theme_bene()
#> Warning in check_font_path(italic, "italic"): 'italic' should be a length-one
#> vector, using the first element
```

<img src="man/figures/README-example-theme-1.png" width="100%" />
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ reference:
- matches("use_.*_template")
- report_save
- open_working_directory
- use_helper_functions

- title: Color and Fill Scales
desc: >
Expand Down
14 changes: 6 additions & 8 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1585fbb

Please sign in to comment.