Faceted log-scaled line plot with error bars using stat_summary from ggplot2 in R (CC326)

preview_player
Показать описание


Support Riffomonas by becoming a Patreon member!

You can also find complete tutorials for learning R with the tidyverse using...

0:00 Introduction
6:28 Creating faceted line plots with error lines using stat_summary
13:20 Formatting log scaled y-axis
18:03 Formatting legend
25:28 Adjusting axis titles and grid lines
27:11 Indicating limit of detection
30:54 Adjusting appearance and order of facets
Рекомендации по теме
Комментарии
Автор

I'd love to hear what kids of problems you run into when making faceted plots or combining different plots together into a single figure! Leave a note here in the comments.

Riffomonas
Автор

Great video, as always super explanatory and helpful for us

PhilippusCesena
Автор

My main issue with faceting is how it interacts with additional layers. I was trying to make those relative abundance bar plots, but with a little line at the bottom to represent the percent read abundance, which I saw in a paper. If you try to facet this, the line would does not facet with the other objects and becomes duplicated and looks bad. To fix this I was looking into ggside, and adding the line at the top, rather than superimposing it as another layer.

zjardynliera-hood
Автор

I like to export as SVG and do the last touches in Inkscape. That way, if I need to change a color, shape, or legend, I have to edit the SVG and rarely need to go all the way back to ggplot.

mizhimo
join shbcf.ru