Entering edit mode
How can choose the color use on pca plot. I have many samples but I want to have a set of colors:
data<-DESeq2::plotPCA(rld,intgroup=c("condition"),returnData=TRUE) p1<-qplot(PC1,PC2,color=condition,data=data,size=I(10)) ggsave("PCA_condition.png",p1)
plotPCA(rld,intgroup=c("condition","id"),ntop=2000,color=brewer.pal(4,"Dark2")) Error in .local(object, ...) : unused argument (color = c("#1B9E77", "#D95F02", "#7570B3", "#E7298A")) > plotPCA(rld,intgroup=c("condition","id"),ntop=2000,col=brewer.pal(4,"Dark2")) Error in .local(object, ...) : unused argument (col = c("#1B9E77", "#D95F02", "#7570B3", "#E7298A"))
and how can I plot with the labels of the samples.
Thanks s much!