Skip to content

Color in qbarplot does not work with boolean, or 0 containing vectors #74

@vertesy

Description

@vertesy

Description
Color in qbarplot does not work with boolean, or 0 containing vectors

Starter.Cell.Type.WT = c(3070 = "ExN, L4", 959 = "ExN (PCDH10)",
488 = "ExN (PCDH15)", 442 = "ExN, L2-3",191 = "ExN, L6",182 = "ExN, L5",
49 = "CR",49 = "ExN, Nascent",19 = "EPL",18 = "Astrocyte",
12 = "IPC",11 = "RG",9 = "Prog, Div.",8 = "IN, CGE",8 = "IN, Other",7 = "Prog, IN",2 = "Interferon")

## Works
qbarplot(Starter.Cell.Type.WT, plotname = "x", ylab = "Number of Cells", xlab = "xx", label = T, col = as.numeric(grepl("ExN", names(Starter.Cell.Type.WT)))+1)

## Not without +1 or grepl
as.numeric(grepl("ExN", names(Starter.Cell.Type.WT))))
grepl("ExN", names(Starter.Cell.Type.WT))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions