Skip to content

Request to handle ggwrap objects #45

@MahmAbdelwahab

Description

@MahmAbdelwahab

When saving a ggplot with scales adjusted using function from ggbreak, I am getting a strange behavior from mrggsave, The plot saved by mrggsave shows orginal plot without scales breaks, unlike plot saved by ggsave

library(mrggsave)
library(ggbreak)

p <- ggplot(economics, aes(x=date, y = unemploy, colour = uempmed)) +
  geom_line()

plot <- p + scale_wrap(n=4)

ggsave(plot, file = "plot_ggsave.pdf"        
         , onefile=FALSE
         , device = "pdf"
         , width = 8
         , height = 6
         , units = "in" )

 mrggsave(plot,
        stem = "plot_mrggsave",    
        onefile = FALSE,
        dev = "pdf",
         width = 8 height = 6
    )

mrggsave:
image
ggsave:
image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions