ZH-color-scheme & theme_stat template for ggplot2. | Read-only mirror of https://github.com/statistikZH/statR — Kanton Zürich. Issues & pull requests at the source.
  • HTML 89.4%
  • R 10.1%
  • CSS 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-01 11:23:36 +02:00
.github Fix for Issue https://github.com/statistikZH/statR/issues/53; some refactoring; documentation is WIP. 2023-05-05 14:37:05 +00:00
docs resolve merge issues 2026-04-15 15:02:07 +02:00
inst update Amtsname und Logos #73 2026-06-23 16:59:46 +02:00
man Added a separate field in config for TOC title. Default config now taken from the active R user lib. 2024-04-02 16:50:50 +02:00
pkgdown Fix: error on running devtools::build_site(), exporting readUserConfig() 2024-02-09 10:00:07 +01:00
R format 2026-07-01 09:54:56 +02:00
tests format 2026-07-01 09:54:56 +02:00
vignettes update Amtsname und Logos #73 2026-06-23 16:59:46 +02:00
.gitattributes Initial commit 2017-11-09 10:33:31 +01:00
.gitignore Pkgdown troubleshooting 2024-02-27 17:10:40 +01:00
.Rbuildignore Fix: error on running devtools::build_site(), exporting readUserConfig() 2024-02-09 10:00:07 +01:00
DESCRIPTION bump version 2026-07-01 11:18:45 +02:00
index.html vignette updated 2018-06-27 15:22:14 +02:00
LICENSE.md update Amtsname und Logos #73 2026-06-23 16:59:46 +02:00
NAMESPACE Added a separate field in config for TOC title. Default config now taken from the active R user lib. 2024-04-02 16:50:50 +02:00
NEWS.md update NEWS.md 2026-07-01 11:18:33 +02:00
README.md github action badge added 2023-03-01 15:41:12 +00:00
statR.Rproj removed vignette packages 2021-09-30 08:47:07 +02:00

statR

R-CMD-check

Mit dem statR-Package können mit dem Corporate Design des Kantons Zürich konforme Visualisierungen, Excel-Tabellen und Html-Berichte in R erstellt werden. Das Package beinhaltet:

  • Funktionen, mit denen Datensätze aus R als XLSX-Datei abgespeichert werden können (inkl. Quellenangaben und weiteren Zusatzinformationen).

  • generische Farbpaletten für Datenvisualisierungen

  • ein ggplot2 theme

  • ein Template für Html-Berichte

Installation

Das Package liegt auf GitHub. Es kann auf zwei Arten installiert werden:

# Variante 1

library(devtools)
devtools::install_github("statistikZH/statR")

# Variante 2

library(downloader)
download("https://github.com/statistikZH/statR/archive/refs/heads/master.tar.gz", "statR.tar.gz")
install.packages("statR.tar.gz", repos = NULL, type = "source")


Die Development-Version kann folgendermassen installiert werden:

# Variante 1

library(devtools)
devtools::install_github("statistikZH/statR", ref = "dev")

# Variante 2

library(downloader)
download("https://github.com/statistikZH/statR/archive/refs/heads/dev.tar.gz", "statR.tar.gz")
install.packages("statR.tar.gz", repos = NULL, type = "source")