[R] How to use color shade in Stacked bar plot?

R. Michael Weylandt michael.weylandt at gmail.com
Mon Jul 23 21:23:01 CEST 2012

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)


On Mon, Jul 23, 2012 at 11:34 AM, Manish Gupta
<mandecent.gupta at gmail.com> wrote:
> Hi,
> I am wokring on stacked R plot but i want to use shade color of red for each
> stack and corresponding legend. How can i use it?
> Regards
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-use-color-shade-in-Stacked-bar-plot-tp4637468.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list