I would like to have the individual values of the species above the bars, i use data from an excel csv file, commands like geom_text(aes(label=y)
don't work for me, because i don't know what my y is.
My code looks like this:
ggplot(R_Sandbach, aes(x = fct_infreq(Species), colour = Species)) +
geom_bar(fill = "white") +
theme_minimal() +
theme(
axis.text.x =
element_text(angle = 90, size = 5)
) +
xlab("Fischarten") +
ylab("Individuenanzahl")