Skip to content
Prev 175165 / 398506 Next

color vectors other than gray()

Petr,

I'd like to be able to change the ramp to other than grey shades.

Please see my previous message with some data.

____________
Paulo E. Cardoso


-----Mensagem original-----
De: Petr PIKAL [mailto:petr.pikal at precheza.cz] 
Enviada: sexta-feira, 27 de Mar?o de 2009 15:12
Para: Paulo E. Cardoso
Cc: r-help at stat.math.ethz.ch
Assunto: Re: [R] color vectors other than gray()

Hi

r-help-bounces at r-project.org napsal dne 27.03.2009 15:36:23:
(in
0 3
0 0
0 0
0 0
0 0
0 0
0 0
0 0
If I understand correctly

pal<-grey(0:max(quad_N_sp$x)/max(quad_N_sp$x))
shall give you vector of equally spaced grey values

pal[quad_N_sp$x+1]
shall give you shadings for each quad_N_sp$x value

Regards
Petr
http://www.R-project.org/posting-guide.html
No virus found in this incoming message.
Checked by AVG - www.avg.com 

03/27/09
07:13:00
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAK2N38q7o51Ejb8q0JfvLrBiggAAEAAAAEbhaXZA+XRLv67UkiXSOcUBAAAAAA==@netcabo.pt>
In-Reply-To: <OF9C099FDE.5C6D7DE7-ONC1257586.0052DB55-C1257586.00537310@precheza.cz>