teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

better ggsubset #1

Closed teunbrand closed 5 years ago

teunbrand commented 5 years ago

ggsubset <- function(rowtest = NULL, omit = NULL) { rowtest <- substitute(rowtest) if (is.null(rowtest)) { rowtest <- substitute(TRUE) } omit <- substitute(omit) if (is.null(omit)) { omit <- substitute(TRUE) } function(x) subset.data.frame(x, eval(rowtest), -eval(omit)) }

teunbrand commented 5 years ago

Added and scheduled for next push.