Skip to content
Prev 305501 / 398506 Next

swap hist() colours

Hello,

Use ?colorRampPalette

nr <- nrow(yes.matrix_11)
clrs <- colorRampPalette(c("white", "black"))(nr)

barplot(yes.matrix_11, beside =TRUE, ylim=c(0,250), col = clrs)
[...etc...]

Hope this helps,

Rui Barradas

Em 14-09-2012 12:33, Robert Pazur escreveu: