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))
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")