upsetjs / upsetjs_r

😠 htmlwidget R bindings for UpSet.js for rendering UpSet plots, Euler, and Venn Diagrams
https://upset.js.org/integrations/r
Other
36 stars 2 forks source link

Problem with upsetjsVennDiagram() #21

Closed PierreSolomon closed 2 years ago

PierreSolomon commented 3 years ago

When I use the command in the To Reproduce part bellow to produc a venn diagram, The venn is ploted but the numbers in the different case and the interaction are not correct. For example, on the venn that I plot, I can see that there are 5 element specific to the vector named "two" while in fact there should only be one. The interactivity is also broken. When I hover a part of the venn diagram all the other show "0/n" element even if some are in common with the hovered part.

To Reproduce

listInput <- list(one = c(1, 2, 3, 5, 7, 8, 11, 12, 13), two = c(1, 2, 4, 5, 10), three = c(1, 5, 6, 7, 8, 9, 10, 12, 13)) upsetjsVennDiagram() %>% fromList(listInput) %>% interactiveChart()

Expected behavior

The same venn diagram that is represented on the github should show the same values as the one on the github (https://github.com/upsetjs/upsetjs_r)

Context