Make plots side-by-side

This commit is contained in:
mine-cetinkaya-rundel 2023-02-23 23:52:04 -05:00
parent df90abbde5
commit 1a1151cb0b
1 changed files with 1 additions and 0 deletions

View File

@ -699,6 +699,7 @@ Based on the plot on the left, we can see that Gentoo penguins all live on Bisco
#| Bar plots of penguin species by island (Biscoe, Dream, and Torgersen).
#| On the right, frequencies of species are shown. On the left, relative
#| frequencies of species are shown.
#| layout-ncol: 2
ggplot(penguins, aes(x = island, fill = species)) +
geom_bar()