I need to plot many graphs with all the combination of the elemts of a matrix.
I have three columns. I would like to plot the time series of the elements named A corresponding to W1, then the time series of the elements named B corresponding to W1. Same with W2; In reality my matrix is huge, but the idea should apply.
In particular, I would like to learn how to tell R to group together all the elements of W1 separating them by the elements of name.
Furthermore, what is the most efficient way to plot all these graphs (in the example below, I would need 4 graphs)?
name    W1   W2
A       123  24
A       754  7245
A       475  257
A       623  2457
A       525  27
A       256  72
A       352  725
B       257  572
B       572  577
B       75   257
B       27   257
B       247  7522
B       257  724
 
    
