Skip to content
Prev 300967 / 398513 Next

How to use color shade in Stacked bar plot?

Far too vague a question but perhaps something like

barplot(1:12, col = c("brown1", "brown3", "brown2", "firebrick",
"firebrick1", "firebrick4",
"firebrick3", "firebrick2", "darkred", "red4", "red3"))

legend("topleft", col = c("brown1", "brown3", "brown2", "firebrick",
"firebrick1", "firebrick4",
"firebrick3", "firebrick2", "darkred", "red4", "red3"), legend = 1:12, pch = 15)

Michael

On Mon, Jul 23, 2012 at 11:34 AM, Manish Gupta
<mandecent.gupta at gmail.com> wrote: