Skip to content

Improvements to plotting functions #10

@pcarbo

Description

@pcarbo

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions