Pietrzykowski, Matthew (GE, Research)
2008-Aug-08 21:16 UTC
[R] Reflecting correct color and density values in a barplot legend
Hello- I am trying to build a barplot with a fairly large number or categories (65). I figured out how to plot the bars with solid colors and then with density lines to differentiate the 65 items with the following code: barplot(data,col = seq(2:11)) barplot(data,col = "black", density = c(0,seq(10,90,10))) #The above produces one barplot with densities overlaid on my colored columns My question is how do I set up my legend to show the same color/density pattern? Thank you, Matt [[alternative HTML version deleted]]