@william-denault I'd like to suggest a few changes to the plotting functions that I think would make the plotting interface more logical and easier to use. I believe that these changes should be straightforward to implement.
First, I suggest having three functions:
plot_susiF
plot_susiF_pips
plot_susiF_effects
Also, please add a "plot" method which simply calls plot_susiF. See for example plot.ebnm in the ebnm package for an example of how to do this.
Second, the functions should not actually plot anything to the screen, but only return ggplot objects:
-
plot_susiF_pips and plot_susiF_effects should each return a single ggplot object.
-
plot_susiF should return a ggplot object or a list containing two ggplot objects. The output depends on an argument "which.plots" which looks like this (and will replace "pip_only"):
plot_susiF = function (..., which.plots = c("both", "pips", "effects"), ...)
Let me know if you have any questions about these suggested changes.
@william-denault I'd like to suggest a few changes to the plotting functions that I think would make the plotting interface more logical and easier to use. I believe that these changes should be straightforward to implement.
First, I suggest having three functions:
Also, please add a "plot" method which simply calls
plot_susiF. See for exampleplot.ebnmin the ebnm package for an example of how to do this.Second, the functions should not actually plot anything to the screen, but only return ggplot objects:
plot_susiF_pipsandplot_susiF_effectsshould each return a single ggplot object.plot_susiFshould return a ggplot object or a list containing two ggplot objects. The output depends on an argument "which.plots" which looks like this (and will replace "pip_only"):Let me know if you have any questions about these suggested changes.