if (requireNamespace("ggplot2", quietly = TRUE)) {
df <- data.frame(region=c("Nord","Sud","Est","Ouest"), valeur=c(35.2,28.7,41.1,22.5))
graphique_barres(df, var_x="region", var_y="valeur", titre="Indicateur")
}
Run the code above in your browser using DataLab