maftools oncoplot top bar barplots - any way to customize this plot further with color aesthetics or cutoff lines?
0
0
Entering edit mode
5 weeks ago
acererak ▴ 10

I am using R maftools' oncoplot function to summarize the MAF file for a particular cohort of data. Currently on the top bar of the oncoplot, I am plotting an outcome of interest.

Per documentation, I am passing a dataframe to the topBarData argument and it handles the display of the bar plot, giving some minor flexibility via other arguments.

However what I would like to do is color this outcome barplot by the categorical data of another outcome (I know I can do this on the bottom via annotations but would rather have this codified in the top bar plot), and additionally I would like to draw a horizontal line at some cutoff value).

Is there any way to do this? Ideally maftools would allow passing a ggplot object here for maximum flexibility. If maftools cannot do this, is there another tool that's perhaps more flexible e.g. ComplexHeatmap or GenVisR? I know I could also possibly do this all from scratch via ggplot but this would be a massive effort for a single figure, and maftools is wonderfully handling 90% of what I want to do with this image.

Thanks!

maf maftools oncoplot exome • 241 views
ADD COMMENT

Login before adding your answer.

Traffic: 2843 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6