Entering edit mode
7.0 years ago
Mike
★
1.9k
Hi All,
Sorry for technical question.
I am trying to make a boxplot of gene expression data for some samples, and wanted to highlight specific points (expression value) based on gene name "TP53". I am able to highlight color in scatter plot but couldn't in boxplot, my code for scatter plot is
plot(datamtx, col=ifelse(rownames(datamtx)=="TP53","red","black"))
I tried similar function for Boxplot but doesn't work..
boxplot(datamtx, labels=ifelse(rownames(datamtx)=="TP53","red","black"))
and
boxplot(datamtx, col=ifelse(rownames(datamtx)=="TP53","red","black"))
please help.
Thanks
Thanks a lot, @cpad0112