search for: rainbow_hcl

Displaying 4 results from an estimated 4 matches for "rainbow_hcl".

2014 Dec 08
2
CRAN packages mis-using \donttest : falsy
Hi all, anyone has an idea how I could fix this? \donttest{ ## Set colors from colorspace package with a fallback col <- try(colorspace::rainbow_hcl(5), silent = TRUE) %||% rainbow(5) } The problem is that this makes R CMD check freak out (http://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/falsy-00check.html) if the colorspace package is not declared as a dependency. But the point of the example is to define a meaningful...
2010 Jun 15
2
Graphics question: How to create a changing "smudge factor" for overlapping lines?
...noise <- seq(0,.3, length.out = 100) Y <- NULL X <- NULL k.range <- 2:10 for(k in k.range) { cl <- kmeans(Data, k) y <- apply(cl$centers,1, mean)[cl$cluster] + noise Y <- cbind(Y, y) x <- rep(k, length(y)) X <- cbind(X, x) points(y ~ x) } require(colorspace) COL <- rainbow_hcl(100) plot(0,0, col = "white", xlim = c(1,10), ylim = c(-.5,1.6), xlab = "Number of clusters", ylab = "Clusters means", main = "(Basic) Clustergram") axis(side =1, at = k.range) abline(v = k.range, col = "grey") matlines(t(X), t(Y), pch = 19, col =...
2008 Apr 24
2
alternatives to RColorBrewer?
I've found RColorBrewer useful for its qualitative palettes, but wished that it could generate more than 12 qualitative palettes (e.g. with Set3). Any suggestions for alternative color palette generators that can handle e.g. 18 distinctive colors? (I'm aware of using rainbow(), but this doesn't generate enough distinct colors when the number of palettes is large). Thanks, Andrew
2014 Dec 08
0
CRAN packages mis-using \donttest : falsy
On 08/12/2014 9:40 AM, G?bor Cs?rdi wrote: > Hi all, > > anyone has an idea how I could fix this? > > \donttest{ > ## Set colors from colorspace package with a fallback > col <- try(colorspace::rainbow_hcl(5), silent = TRUE) %||% rainbow(5) > } > > The problem is that this makes R CMD check freak out > (http://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/falsy-00check.html) > if the colorspace package is not declared as a dependency. But the > point of the examp...