[R] Colours in R
Duncan Murdoch
murdoch at stats.uwo.ca
Thu Jul 17 16:32:19 CEST 2008
On 7/17/2008 10:25 AM, Leandro Marino wrote:
> Hi list,
>
>
> I will help an person that will use some graphics of R in internet.
>
> But this pearson want to specify the colours. This person want me to create
> an pallete of colours like that:
>
>
> Name of color - Code - Colour
> White - 0xFFFFFF - color white (like an box with this color)
>
> I know that is possible with R, but i don't know how.
The colors() function returns all of the names.
The ?col2rgb has examples that produce text tables like what you want,
but doing it graphically will be hard: there are 150 different colours
to show. There's some code in the ?rainbow examples that displays a
smaller number of colours.
Duncan Murdoch
>
> Thanks for the advance.
>
>
> Atenciosamente,
> Leandro Lins Marino
> Centro de Avaliação
> Fundação CESGRANRIO
> Rua Santa Alexandrina, 1011 - 2º andar
> Rio de Janeiro, RJ - CEP: 20261-903
> ( (21) 2103-9600 R.:236
> ( (21) 8777-7907
> * leandro at cesgranrio.org.br
> "Aquele que suporta o peso da sociedade
> é precisamente aquele que obtém
> as menores vantagens". (SMITH, Adam)
>
> P Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO
> AMBIENTE
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list