boxplot() change of colors
2
0
Entering edit mode
Chintanu ▴ 310
@chintanu-2646
Last seen 9.7 years ago
Hi, In boxplot(), is there a simple way to change the box colours for varifying no. of columns. In a different attempt, I could do the change of colour, for say, after every 14th column, like this - boxplot (file [,2:75], las=2, cex.axis=0.6,col = rep(seq(ncol(file)) + 1, each = 14)) Now, wonder how to give different column-colors (red, blue, etc.) for varying sets of columns (e.g., color for the first 7 dataset = green, next 4 datasets = blue ... and so on). Many thanks ! Cheers, Chintanu [[alternative HTML version deleted]]
• 1.1k views
ADD COMMENT
0
Entering edit mode
Chintanu ▴ 310
@chintanu-2646
Last seen 9.7 years ago
Hi, In boxplot(), is there a simple way to change the box colours for varifying no. of columns. In a different attempt, I could do the change of colour, for say, after every 14th column, like this - boxplot (file [,2:75], las=2, cex.axis=0.6,col = rep(seq(ncol(file)) + 1, each = 14)) Now, wonder how to give different column-colors (red, blue, etc.) for varying sets of columns (e.g., color for the first 7 dataset = green, next 4 datasets = blue ... and so on). Many thanks ! Cheers, Chintanu [[alternative HTML version deleted]]
ADD COMMENT
0
Entering edit mode
@lavinia-gordon-2959
Last seen 9.7 years ago
Date: Mon, 7 Dec 2009 17:26:22 +1300 From: Chintanu <chintanu at="" gmail.com=""> Subject: [BioC] boxplot() change of colors To: bioc <bioconductor at="" stat.math.ethz.ch=""> Message-ID: <b6be8caf0912062026n2940704wba2333b600e733ae at="" mail.gmail.com=""> Content-Type: text/plain Hi, In boxplot(), is there a simple way to change the box colours for varifying no. of columns. One option: boxplot(file [,2:75], las=2, cex.axis=0.6, col=c(1,2,3,4,5,5,6,6,6)) where the first four columns will be different colours, then the next two will be the same colour, then the next three (etc). In a different attempt, I could do the change of colour, for say, after every 14th column, like this - boxplot (file [,2:75], las=2, cex.axis=0.6,col = rep(seq(ncol(file)) + 1, each = 14)) Now, wonder how to give different column-colors (red, blue, etc.) for varying sets of columns (e.g., color for the first 7 dataset = green, next 4 datasets = blue ... and so on). Many thanks ! Cheers, Chintanu Lavinia Gordon Research Officer Bioinformatics Murdoch Childrens Research Institute Royal Children's Hospital Flemington Road Parkville Victoria 3052 Australia telephone: +61 3 8341 6221 [1]www.mcri.edu.au This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Childrens Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication. Please consider the environment before printing this email References 1. http://www.mcri.edu.au/
ADD COMMENT

Login before adding your answer.

Traffic: 685 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6