search for: offset4

Displaying 1 result from an estimated 1 matches for "offset4".

Did you mean: offset
2004 Sep 17
1
Confused about specifying plot colors as RGB values
...#39;col' parameter. colnames.col <- c("black", "red", "blue", "green") colnames.rgb <- apply(as.matrix(colnames.col), 1, col2rgb) dimnames(colnames.rgb)[[2]] <- colnames.col baseline <- 1:32 offset2 <- 2*baseline offset3 <- 3*baseline offset4 <- 4*baseline offsets <- cbind(offset2, offset3, offset4) # Produces expected result X11() matplot(baseline, col = colnames.col[1], type = "l") matlines(offsets, col = colnames.col[-1]) # Displays a ??yellow?? line X11() matplot(baseline, col = as.matrix(colnames.rgb[,1]), type =...