Paul Hiemstra skrev:
kerfuffle wrote:
hi folks,
this is driving me up the wall. Apologies for posting twice in the same
week, I'm writing up a thesis. I wish to color-code some dots in an xy
plot. I've got a csv file with various elements, one of which is the
color-key (with the header 'co
kerfuffle wrote:
hi folks,
this is driving me up the wall. Apologies for posting twice in the same
week, I'm writing up a thesis. I wish to color-code some dots in an xy
plot. I've got a csv file with various elements, one of which is the
color-key (with the header 'color'). If the color-key
kerfuffle wrote:
hi folks,
this is driving me up the wall. Apologies for posting twice in the same
week, I'm writing up a thesis. I wish to color-code some dots in an xy
plot. I've got a csv file with various elements, one of which is the
color-key (with the header 'color'). If the color-key
So you have two problems: (1) integers to colors (2) hexadecimal
values to colors
They are quite different problems, I think. For the first one, you
have to look at ?palette to know how integers are mapped to colors via
the palette; and the second problem seems to be that 'read.csv()' has
treated
On Fri, Oct 3, 2008 at 2:10 PM, kerfuffle <[EMAIL PROTECTED]> wrote:
>
> hi folks,
>
> this is driving me up the wall. Apologies for posting twice in the same
> week, I'm writing up a thesis. I wish to color-code some dots in an xy
> plot. I've got a csv file with various elements, one of which
Hi,
I don't know how to get R to use the hex codes, but as an alternative
strategy you can use colors() to get a (much longer than 8) list of
all the colors that R "knows", and use that with your index:
plot(x, y, col=colors()[datacolor])
It takes a bit of fiddling to get distinguishable colors
hi folks,
this is driving me up the wall. Apologies for posting twice in the same
week, I'm writing up a thesis. I wish to color-code some dots in an xy
plot. I've got a csv file with various elements, one of which is the
color-key (with the header 'color'). If the color-key is decimal (eg.
1
7 matches
Mail list logo