powered by
extract the sets from a data frame (rows = elems, columns = sets, cell = contained)
fromDataFrame( upsetjs, df, attributes = NULL, order.by = "cardinality", limit = NULL, shared = NULL, shared.mode = "click", colors = NULL )
an object of class upsetjs or upsetjs_proxy
upsetjs
upsetjs_proxy
the data.frame like structure
the optional column list or data frame
order intersections by cardinality or degree
limit the ordered sets to the given limit
a crosstalk shared data frame
whether on 'hover' or 'click' (default) is synced
the optional list with set name to color
the object given as first argument
# NOT RUN { df <- as.data.frame(list(a=c(1, 1, 1),b=c(0, 1, 1)),row.names=c('a', 'b', 'c')) upsetjs() %>% fromDataFrame(df) # }
Run the code above in your browser using DataLab