jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
129 stars 18 forks source link

Set background colour #74

Open zx8754 opened 3 years ago

zx8754 commented 3 years ago

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 commented 3 years ago

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