1

I have a data.frame with the following format:

  X  Y  min  max  year  perc1 perc2 perc3
1 10 50  3    4    1    40     50    10 
2 20 60  2    5    1    20     40    40
3 30 50  4    6    1    35     35    30

I'm using the code in the following page (http://rgraphgallery.blogspot.nl/2013/04/rg-basic-point-and-line-graph-with.html) to produce the graph they show.

I have tried summing both graphs but the inly results is a message of: Error: Discrete value supplied to continuous scale

Now, I want to superimpose some stack barplot in the rear of the image. I resourced to the code offered in Create stacked barplot where each stack is scaled to sum to 100% and I have pretty bar plot. But every time I try to

Community
  • 1
  • 1
je_b
  • 213
  • 1
  • 9

0 Answers0