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? Thanks, archana, II yr PhD student, Dept of CSA, IISc [[alternative HTML version deleted]]
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