GitXplorerGitXplorer
g

plotVenn

public
5 stars
1 forks
1 issues

Commits

List of commits on branch main.
Verified
69b69a1e938671b66cf373ad0d29446a50bb4221

Update README.md

ggdmcdonald committed 4 years ago
Verified
bc84a24a16649bb8be28c5de13bf402f787e2d02

Change example pic

ggdmcdonald committed 4 years ago
Verified
6d8736b2cc9b6b29738a10cb77086ad34020ce45

Delete ExampleColours.jpg

ggdmcdonald committed 4 years ago
Verified
1e0de710e421a0c5b79e031d48c2afbd49f517b3

Merge pull request #8 from gdmcdonald/master

ggdmcdonald committed 4 years ago
Unverified
db9f422c96cd431c524e1b06bdc5327e3a9ead1f

prettier

ggdmcdonald committed 4 years ago
Verified
678c0ea2a4bda96f96a8389c59415de44f382a63

Merge pull request #7 from gdmcdonald/master

ggdmcdonald committed 4 years ago

README

The README file for this repository.

plotVenn

Wrapper to plot euler/venn diagram in R

This package wraps up functions from the eulerr package.

Install with devtools::install_github("gdmcdonald/plotVenn")

Example

cars <- mtcars %>%
 transmute(`High Efficiency` = mpg>20,
           `More Cylinders` = cyl>=6)

plotVenn(cars, title = "Overlap between more cylinders\n and high efficiency in mtcars")

Example Euler Plot on mtcars

The table that was input, cars, looked like:

High Efficiency More Cylinders
Mazda RX4 TRUE TRUE
Mazda RX4 Wag TRUE TRUE
Datsun 710 TRUE FALSE
Hornet 4 Drive TRUE TRUE
Hornet Sportabout FALSE TRUE
. . .
. . .
. . .

Example with more colours:

flowers <- iris %>% 
  transmute(`Short Petals` = Petal.Length<2.5,
            `Long Sepals` = Sepal.Length>6,
            `Virginica` = Species=="virginica")

plotVenn(flowers, 
         title = "Subgroups of Iris dataset", 
         fills = c("lightgreen","lightgoldenrod","lightblue","lightpink"),
         edges = c("darkolivegreen","orange","blue","red"))

Example Colour Euler Plot on iris!