GitXplorerGitXplorer
g

plotVenn

public
5 stars
1 forks
1 issues

Commits

List of commits on branch main.
Verified
858783854288a809ee8b50fd68a8ee84ed7f3ecc

Update DESCRIPTION

ggdmcdonald committed 3 years ago
Unverified
8324357c9960b4377c441bebc897e1a75c182c61

v0.2

ggdmcdonald committed 4 years ago
Verified
fbb92a9b5d933485c85adcaccc9f020ebfa08878

Update README.md

ggdmcdonald committed 4 years ago
Verified
32e73356bec4ae040a8a71bdd5f17a211d1d4ec9

add pic

ggdmcdonald committed 4 years ago
Verified
0b54c552e56f2f7e3e0dea86e1509bcf2b74d454

Update README.md

ggdmcdonald committed 4 years ago
Verified
e01b05b4f396bbccadefdaa8a553779602f81536

Delete ExampleColours.jpg

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!