uniteInterestingGroups: Unite interesting groups into a single column

uniteInterestingGroupsR Documentation

Unite interesting groups into a single column

Description

Create a single interesting groups column (interestingGroups) used for coloring in plots. When multiple interesting groups are present, unite into a single column, delimited by a colon.

Usage

uniteInterestingGroups(object, ...)

## S4 method for signature 'DFrame'
uniteInterestingGroups(object, interestingGroups)

Arguments

object

Object.

interestingGroups

character. Groups of interest to use for visualization. Corresponds to factors describing the columns of the object.

...

Additional arguments.

Value

Modified object. Now contains an interestingGroups column.

Note

Updated 2021-02-03.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")
rse <- RangedSummarizedExperiment

## DFrame ====
object <- rse
x <- uniteInterestingGroups(
    object = sampleData(object),
    interestingGroups = interestingGroups(object)
)
print(x)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.