griffithlab / GenVisR

Genome data visualizations
Creative Commons Zero v1.0 Universal
209 stars 62 forks source link

Remove gene proportion barplot #341

Closed Tato14 closed 6 years ago

Tato14 commented 6 years ago

Hi! Is there any argument to remove the left barplot (%Mutation)?

Thanks!

zlskidmore commented 6 years ago

Hi @Tato14

If using the newer S4 style Waterfall() function you can set the plotB param to NULL and it will omit the plot

here's an example using some test data

library(data.table)
library(GenVisR)
test <- data.table("sample"=rep("test1", 5), "gene"=c(rep("egfr", 2), rep("rb1", 3)),
                                          "mutation"=c(rep("missense", 2), rep("nonsense", 2), "frameshift")))

out <- Waterfall(test, plotB=NULL)

drawPlot(out)