urtak %>%
ggplot(aes(gerd,fill = litur_tveir)) + geom_bar(position = position_dodge2(padding = 0.05), alpha = 0.90, width = 0.75) + theme_minimal() + theme(panel.grid.minor.x = element_blank(), panel.grid.major.x = element_blank(), panel.grid.major.y = element_line(color = 8), plot.title = element_text(hjust=0.5),plot.caption = element_textbox_simple(size = 12, linetype = 1, padding = margin(5,5,5,5))) + scale_fill_manual(values = c("Litur" = "Darkred", "Ekki" = "Grey")) + labs(x = "", y = "Fjöldi", fill = "", title = "Fjöldi eftir gerð og myndun litar", caption = "<b>Tafla 1</b><br>Fjöldi fiska eftir gerð og hvort þeir hafi myndað lit eða ekki, rauðu súlurnar eru fiskar sem hafa náð að mynda lit og gráu súlurnar eru fiskar sem ekki enn hafa myndað lit.")
This is my code and works great. My issue is I want to show the amount of fish in each catagory. Everytime I try geom text as the internet seems to say is the only way most other stuff gets ruined. Like the numbers on the side becomes two lines near the bottom with text Litur and Ekki. Same goes for getting it on the bar, all I get are the text saying the same thing.
Anyone with some way to get this working?
Thanks in advance