The boxplot option for visImportance() constructs a ggplot object (g) in lines 191~203 of importanceADT.R, which is then printed on line 204. The function would be more flexible if it returned g rather than printing it. This would allow the user to add their own themes, labels, titles, etc via the + operator provided by ggplot and then print it. (Actually, RStudio will print it to the Plots panel automatically and Rmarkdown documents will print plots by default, but calling print() in other contexts is not too painful.) As it is, the text for the ADT names tends to overlap if there are a large number of ADT probes, which would not be a problem if I could adjust the font size, for example.
Thanks for a great package :)
The
boxplotoption forvisImportance()constructs aggplotobject (g) in lines 191~203 ofimportanceADT.R, which is then printed on line 204. The function would be more flexible if it returnedgrather than printing it. This would allow the user to add their own themes, labels, titles, etc via the+operator provided byggplotand then print it. (Actually, RStudio will print it to thePlotspanel automatically and Rmarkdown documents will print plots by default, but callingprint()in other contexts is not too painful.) As it is, the text for the ADT names tends to overlap if there are a large number of ADT probes, which would not be a problem if I could adjust the font size, for example.Thanks for a great package :)