If I have a dataset like this
Series Name | X1 | X2 | ... | X99 | X100 |
---|---|---|---|---|---|
A | 23 | 35 | ... | 53 | 13 |
B | 17 | 25 | ... | 43 | 34 |
How do I plot in R so that the X-axis is X1,X2...,X99,X100 and I have a linplot for each series name (A-E)
Attempting to plot this results in a scatterplot matrix.
I am looking for a line plot where the x axis is my headers in R. I will attach my code as well as the plot in python that I am looking for.
I know that I could make a new Variable X and have something like
Series Name | X | Value |
---|---|---|
A | 1 | 23 |
B | 1 | 17 |
A | 2 | 35 |
B | 2 | 25 |
... | ... | ... |
A | 99 | 53 |
B | 99 | 43 |
A | 100 | 13 |
B | 100 | 34 |
But I was wondering if there was a way to tell R to plot the headers. If there is no way and it has to be done like the second table is there some example R code that will make the process of changing the table easy?
I will include my data and an example plot of what I want.
Pastebin of data https://pastebin.com/Fg6hDdjh
#Says I have to include code when using pastebin