r figure for capstone project - Delaney #1198
-
Hi all, Steven and I were brainstorming figure ideas to combine as much information from my capstone as I can into one (easy to understand) figure. However, I am not super well versed in R so I did what I could but I'm looking for suggestions and help! I can't really put female/male gonadal stage on the x or y axis because it is ordinal data not continuous so the graph ends up looking really weird. Also, I would like to have something show the difference between the 2 populations based on location in the figure that includes both, but having 2 shapes looks weird. Maybe another color palette for that population? How would I do something like that/what else could I do? (The image with width and heights up to 7 cm includes both populations, and the one with widths and heights up to 6 cm includes only one) Thanks all, looking forward to your help!! - sincerely, an R amateur (lol!)[ ggplot capstone farm population only.TXT ](url) |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 20 replies
-
Can you do one where you have Female stage on the y axis and width on x? And maybe one where Female stage on y axis, male stage on x axis and symbol size be height? |
Beta Was this translation helpful? Give feedback.
-
Also can you post the data? |
Beta Was this translation helpful? Give feedback.
-
Have a look at this for working with GitHub https://washington.zoom.us/rec/play/HoYr33lGLfwGRFNkf-rJI4Pw6TDbUtyPK-EhgOhRR3-V_lZTBBhAQoi4B5N5Jp9OVVCiIPkt3OWu6e_D.wUiaKzo8GfzbbvrN?continueMode=true |
Beta Was this translation helpful? Give feedback.
-
how about |
Beta Was this translation helpful? Give feedback.
-
at Lab Meeting it was suggest stacked bar plots might also have value |
Beta Was this translation helpful? Give feedback.
-
Here's my R code to make these stacked barplots - hope that helps, let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
-
How does this look for the size by continuity graph Steven? I will of course explain what continuity means in the figure description. It skips 4.00-4.50 because there was no data there, is that ok? R^2 = 0.298 (also should the y axis be in percent or out of 1? I have both versions because I wasn't sure) |
Beta Was this translation helpful? Give feedback.
-
also this graph - dashed is grade 3, dotted is grade 2, and plain is stage 1 (just for female) - as predicted grade 3 stayed pretty constant across sizes and stage 1 decreased strongly. The line for stage 2 seems to be impacted by the 7.00-7.50 bin (since we are doing proportions there was only one individual in that bin but it had a grade of 2 (100%) which seems to throw it off). I might try doing bins of 1 cm instead of 0.5 cm to see how that turns out. What do you think? |
Beta Was this translation helpful? Give feedback.
Here's an example:
Here's my R code to make these stacked barplots - hope that helps, let me know if you have any questions!
Histology-barplots.zip