Displaying 1 result from an estimated 1 matches for "oneis".
Did you mean:
oneit
2007 Oct 15
1
Error: X11 cannot allocate additional graphics colours.
...hics colours.
Consider using X11 with colortype="pseudo.cube" or "gray".
The problem is I only get it under certain circumstances. I have some
quite convoluted test code:
n <- 82
mat <- matrix(rnorm(n*10), ncol=n)
fcolors <- terrain.colors(n)
image(z=mat, axes=FALSE)
oneis <- 1 / ncol(mat)
sptl <- oneis / 3
max <- 1:n * oneis
min <- c(0, max[1:length(max)-1])
for (i in 1:n) {
axis(side=2, at=c(min[i]-sptl,max[i]+sptl), labels=NA, line=0.9,
lwd=3, lty=1, tick=TRUE, tck=0, col=fcolors[i],lend=2)
}
Now, this code works without error on values of n up to an...