theme_ins: Thème ggplot2 officiel INS

View source: R/visualisation.R

theme_insR Documentation

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
)

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.

Value

Un objet theme ggplot2.

Examples

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

statAfrikR documentation built on Sept. 20, 2026, 5:07 p.m.