Documentation

All help files and vignettes are available at https://inbo.github.io/INBOtheme

Installation

The latest version of the package is available through the INBO R universe.

# Enable the INBO universe
options(
  repos = c(
    inbo = "https://inbo.r-universe.dev", CRAN = "https://cloud.r-project.org"
  )
)
# Install the package
install.packages("INBOtheme")

Another option is to install the package from GitHub.

if (!"remotes" %in% rownames(installed.packages())) {
  install.packages("remotes")
}
# install the latest version
remotes::install_github("inbo/INBOtheme")
# install a specific release
# see https://github.com/inbo/INBOtheme/releases
remotes::install_github("inbo/INBOtheme@v0.5.8")

Rationale

The ggplot2 package has a nice and easy system to apply themes. The INBOtheme packages contains themes for the Research Institute for Nature and Forest, the Flemish government and Elsevier journals.

The documentation is available at https://inbo.github.io/INBOtheme. This includes a set of example figures for each available theme.

Folder structure

The folder structure is that of a typical R packages with the mandatory R folder (definition of the functions) and man (helpfiles in Rd format). max-roxygen contains some templates for the help files. inst contains some auxiliary scripts are stored. The test folder contains the unit tests using the infrastructure from the testthat package. The vignette folder contains examples of the available themes.

INBOtheme
├── inst 
├── man 
├── man-roxygen
├── R
├─┬ tests
│ └── testthat
└── vignettes