Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleksanderbl29/aleksander
Package of personal functions
https://github.com/aleksanderbl29/aleksander
Last synced: about 1 month ago
JSON representation
Package of personal functions
- Host: GitHub
- URL: https://github.com/aleksanderbl29/aleksander
- Owner: aleksanderbl29
- License: agpl-3.0
- Created: 2024-06-10T11:37:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T11:17:40.000Z (about 2 months ago)
- Last Synced: 2024-11-11T12:20:58.037Z (about 2 months ago)
- Language: R
- Homepage: http://package.aleksanderbl.dk/
- Size: 3.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# aleksandeR
[![R-CMD-check](https://github.com/aleksanderbl29/aleksandeR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aleksanderbl29/aleksandeR/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/aleksanderbl29/aleksandeR/graph/badge.svg?token=FIXGM13TQF)](https://codecov.io/gh/aleksanderbl29/aleksandeR)This package exists to make my personal convenience functions portable and easy to share.
## Installation
You can install the development version of aleksandeR from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("aleksanderbl29/aleksandeR")
library(aleksandeR)
```## Functions
The functions of this package all belong to one of the following types:
1. Formatting/output (great for Quarto or Rmarkdown)
2. ggplot themes
3. Misc. functions### Formatting and output
I currently have `format_num()` that formats numbers in a way that conforms to nothern european number presentation standards.
### Themes for ggplot2
All my custom themes are very close to either `ggplot2::theme_minimal()` or `cowplot::theme_cowplot()` but have my own twists and personal defaults integrated. The themes are created for each type of plot and can be called individually or through the aptly named `theme_aleksander()`.
### Misc.
This includes `pkg_bib()`.
## Development
This package is built with the instructions from the great package-book [R Packages (2e)](https://r-pkgs.org).
For the themes I try to do test-driven development. It was first introduced to me in the great video series by [Pat Schloss](https://www.schlosslab.org/labbies/schloss.html). Take a look if you're interested. [Video link](https://www.youtube.com/watch?v=TaNvqwMmHus)