Skip to content

ggsave error with emf and wmf "grDevices::win.metafile(...) : unused argument (bg = "white")" #4521

Closed
@dweis-ku

Description

@dweis-ku

ggsave produces error when saving in wmf or emf format
Error in grDevices::win.metafile(...) : unused argument (bg = "white")

Save as PDF and PNG work as expected.

reprex:

library(tidyverse)
e <- ggplot(mpg, aes(cty, hwy))
e + geom_point()
ggsave("test.wmf")
ggsave("test.emf")

Expected that my plot would save.

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