Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set background colour #74

Open
zx8754 opened this issue Oct 7, 2020 · 1 comment
Open

Set background colour #74

zx8754 opened this issue Oct 7, 2020 · 1 comment

Comments

@zx8754
Copy link

zx8754 commented Oct 7, 2020

grid solution below:

library(grid)

# plot, assign to object
x <- plot(fit,
          fills = c("blue", "white", "white"),
          labels = list(col = "black", font = 4), bg = "blue")

# now use grid
grid.newpage()
# background is red
grid.draw(rectGrob(gp = gpar(fill = "red")))
# now add eulerr plot
grid.draw(x)

image

Is there a better way, maybe I am missing some argument?

Related SO post:

@jolars
Copy link
Owner

jolars commented Oct 11, 2020

No, there probably isn't right now. This should be an easy fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants