Skip to content

Improve get_plot_data() for patchwork plots #16

@MattCowgill

Description

@MattCowgill

I want to be able to use get_plot_data() for patchwork plots, which are ggplots (or other grid objects). I have implemented a hacky and sub-optimal solution - for each subplot in the patchwork plot, we get the data using the existing method, then dplyr::bind_rows() all the data into one data frame. This is clumsy and ugly - I do not like the results.

An alternative would be to return a list of dataframes. Then, when saving in Shiny, it could either:

  • save each DF as a CSV, combine into one ZIP
  • save each DF as a worksheet in an Excel workbook (using openxlsx) rather than CSVs

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