I'm having difficulty styling this euler plot. One of my main issues is that I'd like the legend to be on the bottom, but display the variables horizontally. They look strange stacked vertically.
If anyone also knows how to adjust the margins, add a border around the whole plot, and add a subtitle, I'm stumped on those things too. I've already tried par(mar) and that didn't have any effect.
fit1 <- euler(c("Day 1" = 69, "Day 2" = 109, "Day 3" = 152,
"Day 1&Day 2" = 11, "Day 1&Day 3" = 18, "Day 2&Day 3" = 28,
"Day 1&Day 2&Day 3" = 2))
col <- c("#66D2D6", "#FBC740", "#E56997")
plot(fit1,
quantities = TRUE,
fills = list(fill = col, alpha = 0.8),
edges = "black",
main = list(label = "test", cex = 0.9),
legend = list(side = "bottom"))
The
plot
method foreuler
objects usesgrid::grid.legend()
to plot the legend. You can specify any ofgrid.legend
's arguments in thelegend
argument toplot
(which really callsplot.euler
). To get a horizontal legend, use