ggformat | R Documentation |
This function mets a jour les données dans une table si l'id existe dans la table sql server ou alors ajoute les données a partir d'un dataframe
ggformat(
g,
title = NULL,
subtitle = NULL,
x.label = NULL,
y.label = NULL,
caption = NULL,
tag = NULL,
xlab.angle = 0,
ylab.angle = 0
)
g |
Un objet ggplot |
title |
Le titre du graphique à passer comme argument à la fonction ggplot2::labs() |
subtitle |
Le sous-titre du graphique à passer comme argument à la fonction ggplot2::labs() |
x.label |
Le titre de l'axe x |
y.label |
Le titre de l'axe y |
caption |
... |
tag |
... |
xlab.angle |
Angle en degré pour une rotation des graduation de l'axe x |
ylab.angle |
Angle en degré pour une rotation des graduation de l'axe y |
Retourne un objet ggplot mis en forme
ggformat(g)
g <- mtcars %>%
ggplot(aes(x = carb, y = ws))+
geom_bar(stat = 'identity')
ggformat(g,
title = 'Titre de mon graphique',
subtitle = 'sous - titre',
caption = 'fig. n',
x.label = 'carburant',
y.label = 'weigth')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.