Skip to content

annotationColor Error #310

Closed
Closed
@DarioS

Description

@DarioS

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions