Skip to content

swap hist() colours

2 messages · Robert Pazur, Rui Barradas

#
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: