You can specify a color set in R using the palette() function. Here is an example on how to set a color set using a specific palette in R:
220 chars9 lines
In this example, rainbow(5) generates 5 colors from the rainbow color palette, and palette(my_colors) sets this custom color palette. The barplot() function then uses these colors for the bars in the plot.
gistlibby LogSnag