Comments (1)
There is not in general an exact solution to 4-set diagrams. eulerr uses numerical optimization to find a good approximation in these cases. Even then, the objective is non-convex so there are multiple local minimi that one might get stuck in.
Repeatedly running the above code occasionally results in a plot with the correct sections:
Sure, but that doesn't mean that the loss is lower for this fit. I am working on adding multiple loss metrics, some of which will penalize missing intersections more, however.
Are there sets for which the overlaps are impossible to capture in a eulerr plot?
Yes, absolutely. The package does not guarantee that the fit is exact.
If so is there a way to know when this would be the case without manually checking overlaps?
I don't know of any analytical way, although it of course generally gets harder the more and larger the intersections between many sets are.
Could there be some way to run euler + plot iteratively, checking overlaps at each step by summing the plot labels and plotting only when the correct number of observations would be shown? A clue for the first plot is the overlapping colors are not as expected (white though overlapping).
There is no guarantee that there is an exact solution, so this would guarantee anything. But it would be straightforward to do something like this to increase the likelihood of finding the global minimum. You can also try using the more powerful, but slower, optimizer through extra.args
.
from eulerr.
Related Issues (20)
- color of intersection not changes for some intersections HOT 2
- radius and co-ordinates changes on every run with four sets venn diagram HOT 2
- very slow, Doesn't work with large datasets HOT 6
- basic use raises error and sometimes crashes R HOT 1
- Empty "interaction" present HOT 1
- Missing overlaps in euler plot HOT 2
- missing overlaps using eulerr HOT 3
- Cannot "unbold" labels HOT 2
- Option to have areas proportional to the *log* of the populations?
- The overlaps of last row data cannot be viewed from the plot
- Plotting euler diagram overrides multi-panel layout HOT 1
- percent and counts on two different lines? HOT 1
- eulerr not working with r 4.2.0 HOT 1
- Missing overlaps and areas in euler vs venn HOT 2
- label and percent/count font size and space in between? HOT 1
- eulerr fits my data wrong, not sure what is the problem HOT 1
- Display big numbers with a comma HOT 1
- Overlapping area colors HOT 1
- Can't intall under R version 4.3.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eulerr.