Skip to content

Repository files navigation

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 EfficiencyMore Cylinders
Mazda RX4TRUETRUE
Mazda RX4 WagTRUETRUE
Datsun 710TRUEFALSE
Hornet 4 DriveTRUETRUE
Hornet SportaboutFALSETRUE
...
...
...

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!

About

Wrapper to plot euler/venn diagram in R

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages