fill = var_name
x = var_name
facet_grid(. ~ var_name)
fill = var_name_1
x = var_name_2
x = var_name_1
facet_grid(. ~ var_name_2)
Using the ggplot2::geom_bar() function
ggplot2::geom_bar()
library(tidyverse) # super helpful everything, including ggplot
Reminder: Steps before the ggplot() are combined with pipes %>%, whereas layers of the plot are combined with the addition symbol +.
ggplot()
%>%
+
data_ihno %>% ggplot(aes(majorF)) + geom_bar()