How do I transform a data frame and make multiple line graphs in R?
问题 I have a data frame as below 0-10 10-20 20-30 30-40 M 1 2.5 4 0.3 N 0.5 0.8 2.3 1 The 0-10, 10-20 intervals is my first row without any column headings. I want to plot two line graphs on the same graph depicting M and N values on y-axis and the intervals 0-10, 10-20 etc. as my X-axis. How do I go about doing that? If I make the intervals as my heading, then I am unable to plot these graphs using ggplot as I do not have a x variable for aes() 回答1: A bit hard without the data, but I've created