Giter Club home page Giter Club logo

Comments (5)

jolars avatar jolars commented on May 19, 2024

Unfortunately there is no such argument, though I am not convinced there should be. I would argue that it's the intersections that are of interest in a Euler diagram and not the complement to those intersections. However, if you think otherwise I'm sure I could be persuaded.

In any case, it is very easy to fix this yourself. You could do one of the following two:

library(eulerr)
library(lattice)
library(latticeExtra)

plot(euler(c(A = 25, B = 25))) +
        layer(panel.key("n = 10", points = FALSE))

plot(euler(c(A = 25, B = 25, "NOT A, NOT C" = 10)))

from eulerr.

Gian77 avatar Gian77 commented on May 19, 2024

Hello @jolars
thanks a lot, it looks like it worked 👍

plot(euler(c("A" = 39, "B" = 202, "A&B"=46), labels = c("A","B")), fill_opacity = , fill=c("#33A02C","#1F78B4"), lty=0, fontface = 0, counts=TRUE, main="(A)") + layer(panel.key("n = 16", points = FALSE))

eurl

from eulerr.

jolars avatar jolars commented on May 19, 2024

I have given this thought and I do not think that I will support this since a principal feature of the diagrams is that the shapes are area-proportional and this is already a possibility by specifying a set that contains the other sets, like this (using ellipses):

plot(euler(c(C = 16, "A&C" = 39, "B&C" = 202, "A&B&C"=46), shape = "ellipse"))

image

Not perfect, but at least it maintains area-proportionality.

from eulerr.

mkschneider avatar mkschneider commented on May 19, 2024

First of all thanks for this great package. I am reopening the issue because I have a related question. Euler diagrams can be used to display the percentage of of explained variance due to various components. This is then a share of the total variance. Often the total is drawn as a box around the euler diagram and the size of the circles are scaled proportional to the proportions explained. Can this be achieved using eulerr?

from eulerr.

jolars avatar jolars commented on May 19, 2024

Unfortunately not @mkschneider. This would be difficult to achieve while still maintaining proportionality of the diagrams. I am open to pull requests addressing the issue but will not work on it myself. I'll reopen the issue, however.

from eulerr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.