I have found this little function useful when trying to choose colors:
showcols - function (indx = 0:6)
{
for (ii in unique(indx)) {
is - 100 * ii + 1:100
if (min(is) length(colors())) {
cat(Maximum value of arg is, floor(length(colors())/100),
Don MacQueen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have found this little function useful when trying to choose colors:
FWIW: To choose colors, this page
http://research.stowers-institute.org/efg/R/Color/Chart/index.htm
and PDF
Vincent Deng wrote:
Hi,
I'm a new hand in R language. I have about 20 groups of data[x,y] and
want to plot them on a graph. To do this, I write a for-loop as
following: (some codes are omitted for simplicity)
for (i in c(1:20))
{
points(...,...,col=i)
lines(...,col=i)
}
The
Dear Uwe,
Sorry, I did not describe my question clearly. I created a matrix to
store color code using rgb function.
abc = rgb(6:36,0,0,maxColorValue = 255)
And after running codes like this
for (i in c(1:20))
{
points(...,...,col=abc[i])
lines(...,col=abc[i])
}
R still used 8 colors of
Vincent Deng wrote:
Dear Uwe,
Sorry, I did not describe my question clearly. I created a matrix to
store color code using rgb function.
abc = rgb(6:36,0,0,maxColorValue = 255)
And after running codes like this
for (i in c(1:20))
{
points(...,...,col=abc[i])
Hi,
Thanks for your kindly reply.
I think maybe I didn't specify color codes properly. That is,the
difference between each color is not sharp enough for me to identify
them as different colors.
So can you tell me about how to specify the color properly so that the
difference among each color can
It might be hard to differentiate between each color with having 255 of
them. Here is an example of using ColorRampPalette to create a set of
colors. You can experiment with as many differing ones as you want to to
get the difference that you want:
# use 5 colors to create a sequence (you can
Hi,
I'm a new hand in R language. I have about 20 groups of data[x,y] and
want to plot them on a graph. To do this, I write a for-loop as
following: (some codes are omitted for simplicity)
for (i in c(1:20))
{
points(...,...,col=i)
lines(...,col=i)
}
The problem is R only plot them with 8