jolars / eulerr

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

how to derive the label positions from an euler object? (former `label()` function) #61

Closed g3o2 closed 4 years ago

g3o2 commented 4 years ago

In reference to #57, it appears that only the coef() function was reimplemented (see ellipses data.frame in the euler object) - thank you btw! - but no the label() function.

Or is there any other trick to derive the label positions from the euler object? AFAIR the now deprecated label() function exposed the coordinates necessary to position the text labels.

jolars commented 4 years ago

This was fixed in 774758e275cea5b826084435b72ce75bbd4d429c, simply do

d <- plot(eulerr::euler(c(A = 1, B = 2)))
d$data
g3o2 commented 4 years ago

@jolars Thank you!