Learn R Programming

statAfrikR (version 0.1.0)

theme_ins: Thème ggplot2 officiel INS

Description

Applique un thème graphique professionnel adapté aux publications officielles des Instituts Nationaux de Statistique africains. Inspiré des chartes graphiques AFRISTAT/PARIS21.

Usage

theme_ins(
  base_size = 11,
  base_family = "sans",
  couleur_fond = "white",
  grille = TRUE,
  grille_mineure = FALSE
)

Value

Un objet theme ggplot2.

Arguments

base_size

numeric — Taille de base de la police. Défaut : 11.

base_family

character — Famille de police. Défaut : "sans".

couleur_fond

character — Couleur de fond du panneau. Défaut : "white".

grille

logical — Afficher les lignes de grille. Défaut : TRUE.

grille_mineure

logical — Afficher la grille mineure. Défaut : FALSE.

Examples

Run this code
if (requireNamespace("ggplot2", quietly = TRUE)) {
  ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
    ggplot2::geom_point() + theme_ins()
}

Run the code above in your browser using DataLab