Skip to content

How do you actually save the plot? #115

@achamess

Description

@achamess

I know this is a noob question, but how do you actually get the output of the plot? I try ggsave and I get

I save the plot to a variable, upset_plot
then

ggsave("plot.pdf",upset_plot)

Error in UseMethod("grid.draw") : no applicable method for 'grid.draw' applied to an object of class "upset"
4.
grid.draw(plot)
3.
(function (filename, plot = last_plot(), device = NULL, path = NULL, scale = 1, width = NA, height = NA, units = c("in", "cm", "mm"), dpi = 300, limitsize = TRUE, ...) { ...
2.
do.call(ggplot2::ggsave, args, envir = parent.frame())
1.
ggsave("plot.pdf", upset_plot)

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