extrafont
?extrafont
extrafont
(2)showtext
patchwork
Auteur: Thomas Lin Pederson
patchwork
: et encore plus!mtcars2 = mtcars %>%
mutate(auto = rownames(.)) # le point fait référence à "mtcars"
ggplot(data = mtcars2,
aes(y = reorder(auto, -mpg), x = mpg)) +
geom_point() +
geom_segment(aes(x = 0, xend = mpg, y = auto, yend = auto)) +
labs(title = "Consommation de carburant selon la voiture",
x = "Miles parcourus pour un gallon",
y = "") +
theme_minimal()
p1 = ggplot(data = dat2,
aes(y = mediane,
x = Season,
color = Tm)) +
geom_point() +
geom_line() +
scale_color_manual(name = "",
values = c("red", "blue")) +
labs(x = "",
y = "Âge médian",
title = "Age médian des joueurs",
subtitle = "Canadiens de Montréal et Maple Leafs de Toronto") +
theme_minimal()
p1
{r ...}
include =
echo =
eval =
message =
fig.height =
knitr::opts_chunk$set