I have a dataframe that has 2 rows and 3 columns. I want to be able to chart all three columns, and it would probably make the most sense in a geom_col or geom_bar chart. The x axis would stay the same for both graphs.
Dataframe has columns a1, b1, b2
I used this template to create one graph. Hope this amount of detail is helpful.
Datafame %>%
ggplot(aes(x = a1, y = b1, fill = b1)) +
geom_col(position = "dodge", show.legend = FALSE) +
theme(axis.text.x = element_text(angle = 90)) +
geom_text(aes(label = b1), hjust = -.5, vjust = -.5, size = 3.5) +
expand_limits(x = 2, y = .35) +
coord_flip()