Skip to contents

GGplot2 extension to plot a Euler diagram

Usage

plot_euler(data, ...)

Arguments

data

a tidyproteomics data object

...

passthrough for ggsave see plotting

Value

a (tidyproteomics data-object | ggplot-object)

Examples

library(dplyr, warn.conflicts = FALSE)
library(tidyproteomics)
hela_proteins %>%
   subset(imputed == 0) %>%
   plot_euler()
#> 
#>  Subsetting data: imputed == 0
#>  Subsetting data: imputed == 0 ... done
#> 


hela_proteins %>%
   subset(imputed == 0) %>%
   subset(cellular_component %like% "cytosol") %>%
   plot_euler()
#> 
#>  Subsetting data: imputed == 0
#>  Subsetting data: imputed == 0 ... done
#> 
#> 
#>  Subsetting data: cellular_component %like% cytosol
#>  Subsetting data: cellular_component %like% cytosol ... done
#>