[R] how to reverse colors on boxplot

Ana Marija @okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Thu Aug 8 19:49:41 CEST 2019


Hello,

I made plot in attach using:

boxplot(flcn_M~subject,data=dx,col =
c("royalblue1","palevioletred1"),xlab="subjects",ylab="Expression
estimate in delta (log2)",boxwex = 0.2,frame.plot = FALSE)
stripchart(flcn_M~subject, vertical = TRUE, data = dx,method =
"jitter", add = TRUE,pch = 20, col=rgb(0,0,0,.5),jitter = 0.001)

How do I reverse colors so that PDR is shown in this pink and nDR in blue?

Thanks
Ana



More information about the R-help mailing list