Re: [R] improving a bar graph

2007-12-16 Thread hadley wickham
On 12/16/07, Bob Green <[EMAIL PROTECTED]> wrote: > Hello, > > Below is the code for a basic bar graph. I was seeking advice > regarding the following: > > (a) For each time period there are values from 16 people. How I can > change the colour value so that each person has a different colour, > wh

Re: [R] improving a bar graph

2007-12-16 Thread John Kane
Ugly brute-force approach: col=1:16 . Jim Lemon's approach with Plotrix is much nicer. You might also want to have a look at RColorBrewer though I am not sure how easily it can handle 16 different colours. barplot(dft, beside = TRUE, main= "Risk score by assessment", xlab = " Score", ylab = "

Re: [R] improving a bar graph

2007-12-16 Thread Gabor Grothendieck
Try this: matplot(t(dft), type = "o", xlab = "Time", ylab = "Score") On Dec 16, 2007 4:14 AM, Bob Green <[EMAIL PROTECTED]> wrote: > Hello, > > Below is the code for a basic bar graph. I was seeking advice > regarding the following: > > (a) For each time period there are values from 16 people.

Re: [R] improving a bar graph

2007-12-16 Thread Jim Lemon
Bob Green wrote: > Hello, > > Below is the code for a basic bar graph. I was seeking advice > regarding the following: > > (a) For each time period there are values from 16 people. How I can > change the colour value so that each person has a different colour, > which recurs across each of th