search for: str2col

Displaying 2 results from an estimated 2 matches for "str2col".

Did you mean: str2bool
2000 Mar 29
1
pre summary: mapping of colornames into hsv?
...el are > > hsv2rgb() (h,s,v) |-> (r,g,b) > > rgb2hsv() does *NOT* exist in graphics.c ; > is it possible at all (i.e. is hsv <--> rgb 1:1 ?)} > > rgb2col(rgb_ch) |-> uint { := unsigned int } > name2col (ch) |-> uint > number2col(ch) |-> uint > str2col (ch) |-> uint {calling one of the above 3 functions !} > > RGB2rgb(r,g,b) |-> #RRGGBB string > col2name(uint) |-> name from colors() or #RRGGBB string > > ------- > I would tend to provide only > > * str2col() returning an R integer() {instead of uint; the &g...
2005 Nov 18
1
using a factor as col argument in plot:
Dear R core team Using the following code produces an empty plot (similar to col = NA): > plot(1:9, col = factor(rep(1:3,3), labels = c("red", "blue", "black"))) My question: Shouldn't one get at least a warning (or an error) if one tries to use a factor as col argument? Thanks for an answer. Regards, Christoph Buser