I am new to R and I am trying to plot a decile plot of annual average returns of the past 55 years. I have the portfolio return in average annual series of Decile 1 to Decile 10. What I want to do is to plot the decile series from 1 - 10 on the x-axis and on the y-axis the annualized average return. I have attached a picture of my data frame so you guys can see my point. I hope somebody can help me on my way. Thank you.
I have used this code here:
For ( i in seq(1,length( DATAFRAME ),1) ) plot(DATAFRAME[,i],ylab=names(DATAFRAME[i]),type="l")
It works, but I get all the graphs in 50 single plots, I want all the plots combined. How can I combine all the plots based on the code above?