[R] assigning colors to barplot

Jim Lemon jim at bitwrit.com.au
Fri Jun 27 14:41:06 CEST 2008


On Fri, 2008-06-27 at 15:17 +0530, Archana Vagish wrote:
> Hi,
>  I want to plot a series of numbers ( which lie in the range 1-20, there are
> many such numbers) as a barplot. However instead of representing the values
> in terms of height, i want to assign one unique color to each number. How
> can this be done in R?

Hi Archana,
Have a look at the color.scale function in the plotrix package to may
your values into colors.

Jim



More information about the R-help mailing list