Это видео недоступно.
Сожалеем об этом.
Double group on x axis with ggplot
HTML-код
- Опубликовано: 14 авг 2024
- This is a live coding tutorial that shows how you can create a plot that has two levels of groupings along the x axis. This is done by using facets, but hiding all the traditional trademarks of the facet panels.
Code can be found here: github.com/Pec...
2:31 Create R Project
4:02 Install + Download {palmerpenguins}
6:04 Summarize Data
8:03 Start Plotting
11:28 Add Facets
12:57 Update Thematic Elements
16:25 Update Labels
24:52 Save Plot to PNG
26:58 Change Fill Colors
29:10 Increase Inter-Bar Spacing
I have a similar case where one of my species category (lets assume Gentoo) has only lenght measurements. When I plot I get depth and length labeling to appear under Gentoo but actually there is no depth barplot. How can I tell R Studio to delete the depth barplot for that specific Gentoo species? Thanks in advance
Great tutorial. You can use ggview package to check the right size of graph before saving it. Cheers.
Thank you for videos. I hope you will continue these good jobs!👍
More to come!
thank you so much for this! is there any way to make three levels??