"EggMass", "Eurycercidae", "Fish.Eggs", "Goby", "Hemimysis", "Chydoridae", "Copepoda", "Cyclopoid", "Daphnia", "Dreissena", "Byths", "Chiro.Adult", "Chiro.Larvae", "Chiro.Pupae", "Chironomidae", "Cyclopoid", "EggMass", "Fish.Eggs", "Hemimysis", "Trichopteran", "Chironomidae", "Goby", "Copepoda", "Eurycercidae", "Chydoridae", "Chiro.Larvae", "Dreissena", "Sphaeriidae", "Isopod", "Chiro.Adult", Bars (prey) that have the same value, should only have it printed once to avoid overcrowding (this part is what I haven't been able to properly adjust). Scale_y_continuous(expand = expansion(mult = c(0,0.1)), labels=scales::percent)Īs shown, I would like the bars to have percentage at the top. Legend.background = element_rect(fill = "white", color = 1), Labs(x="Prey", fill = "Prey Name", y = "Frequency of Occurrence (%)") + ![]() Mutate(label = scales::percent(round(Fi, digits=3)), Using one of the answers in my other question, this is the code and resulting plot for my original figure: ggplot(FO_adult, aes(x=reorder(prey_name, -Fi), Fi, fill=prey_name)) + The answer provided was great but now I am trying to do the same thing but while using facet_wrap by a group and it is not working and I can't figure out what I need to adjust. This question is similar to something I asked about a month ago here. I would like them placed on top of each bar. ![]() ![]() I am trying to add percentage labels to a bar plot using ggplot geom_text but the labels are not in the correct positions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |