eulerr icon indicating copy to clipboard operation
eulerr copied to clipboard

Set background colour

Open zx8754 opened this issue 3 years ago • 1 comments

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:

zx8754 avatar Oct 07 '20 20:10 zx8754

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

jolars avatar Oct 11 '20 11:10 jolars