Closed
Description
If I specify annotationColor
, I get an error
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf)
annotateTable <- data.frame(Tumor_Sample_Barcode = levels(laml@data[["Tumor_Sample_Barcode"]]),
Gender = factor(sample(c("Male", "Female"), 193, replace = TRUE)))
oncoplot(maf = laml, annotationDat = annotateTable, clinicalFeatures = "Gender",
groupAnnotationBySize = FALSE, sortByAnnotation = TRUE, annotationColor = list(Gender = c("pink", "blue")))
results in the error 'legend' is of length 0
. What is the necessary format of annotationColor
? The vignettes nor the oncoplot
function's documentation provide any details. I would like to find at least one example somewhere.
Metadata
Metadata
Assignees
Labels
No labels
Activity