Closed jaclyn-taroni closed 2 years ago
@jaclyn-taroni I am not loving the patterns in the bars, but maybe we can simplify and use only panel 2 with the total N's per group in parentheses in the X-axis label or above the bar, and leave out the N by assay from this part of the figure?
Okay this is now split into the tumor descriptor plot (for main display):
And the stacked bar plot, just in case we want it for the supp:
Easier to take the code out once it's in than the other way around.
The sample counts between the two figures differ and I know why, but I think it's worth discussing which one is "correct" for the tumor descriptor plots. At this point, I will request @jashapiro for review.
While we are at it...
The sample counts between the two figures differ and I know why, but I think it's worth discussing which one is "correct" for the tumor descriptor plots.
The tumor descriptor plots count specimens. The experimental strategy plot counts sample ids, which is necessary because the pattern displays how a given sample was assayed. Should the tumor descriptor plot also count sample ids?
Tagging @jharenza and @jashapiro
While we are at it...
The sample counts between the two figures differ and I know why, but I think it's worth discussing which one is "correct" for the tumor descriptor plots.
The tumor descriptor plots count specimens. The experimental strategy plot counts sample ids, which is necessary because the pattern displays how a given sample was assayed. Should the tumor descriptor plot also count sample ids?
Tagging @jharenza and @jashapiro
I feel like sample ids is the more relevant count for the tumor descriptors, personally.
I feel like sample ids is the more relevant count for the tumor descriptors, personally.
That's what I was thinking, too. I can make that change when I address https://github.com/AlexsLemonade/OpenPBTA-analysis/pull/1201#discussion_r781324156
Okay, I've simplified things quite a bit with facet_wrap()
for both plots! I suspect this is the kind of thing that required patchwork
when I initially filed it with the per-broad histology panels that included the experimental strategy and tumor descriptor plots. Now things are quite different! But it still makes sense to save the pattern legend separately.
Filed #1217 to keep track of the remaining issue! I'm going to update it and merge it.
⚠️ downstream of #1193 and #1195 + cherry-picked the
ggpattern
installation from #1197Addresses part of #1175, specifically the main display item that would replace the multilayer sunburst plot. For each broad histology display group, the script added creates a two plot panel:
Examples
And the legends