How to change the legend position from a Venn Diagram using eulerr package?

318 Views Asked by At

I am using the eulerr package and I want to change the legend position of my plot. I have been able to change it to the right, left, up, down... But I cannot change it to the top right.

library(eulerr)
fit <- euler(c("A" = 10, "B" = 5, "A&B" = 3))

plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"), side="right"))
plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"), side="left"))
plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"), side="down"))
plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"), side="top"))

plot(fit, quantities = TRUE, legend = list(labels = c("foo", "bar"), side="topright")) #it doesn't work

Does anyone know how to change the legend position to the top right?

Thanks very much!

0

There are 0 best solutions below