Donut charts of mean fiber type percentages.
fiber_donut_chart(x)
a data.frame
with columns "group"
("SED", "8W"),
"type"
("I", "IIa", "IIx", "IIb"), and "fiber_count"
(numeric).
A ggplot2
object.
Fiber counts are summed across the biological replicates for each combination of group (SED, 8W) and fiber type (I, IIa, IIx, IIb). Then, each of these summed counts are divided by the total fiber count for that group and multiplied by 100 to obtain percentages.