File: elements.R

package info (click to toggle)
r-cran-upsetr 1.4.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 692 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#' Element query for queries parameter
#' 
#' @description A query paramter to visualize specific elements of interest if queries = active (in custom plots only)
#' @param func A functions provided internally
#' @param query Input from the queries parameter assigned to the element function.
#' @param ... Additional parameters to be supplied internally 
#' @note See examples section of upset function on how to use this function in the queries parameter.
#' @export
elements <- function(func, query, ...){
  data <- func(query, ...)
  return(data)
}