I want to get a lighter shade of a color...I have a lot of colored objects and
want each one printed as a foreground against a slightly lighter background.

I thought I could try something like changing the alpha channel by first
converting it to rgb. 

But prior to trying that, I'm stuck with how to get the color after converting
using col2rgb() to be interpreted again as a color, rather than a simple
vector?

Anyone have any help/ or alternative suggestion...

Thanks, -c
----------------------
TRYING WITH A SINGLE COLOR:

mycol<-"red"

> col2rgb(mycol)
      [,1]
red    255
green    0
blue     0

> rgb(col2rgb(mycol),maxColorValue=255)

Error in rgb(col2rgb("red")) : argument "green" is missing, with no default

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to