I need to plot a large number of graphs from the same data frame. each plot describes a different group of variables in the data frame, but each variable is contained in several plots. My plan is to loop through a data structure which would include the name for each graph, and the vector of variables indexes to plot.
for example:
| plot names | range | other parameters |
|---|---|---|
| ICC - 1 | c(1:20) | 1 |
| IIC - 2 | c(10:30) | 2 |
| TCC - 1b | c(20:40) | 1 |
| TIC - 2x | c(20:40) | 4 |
However, I can't find a suitable data structure in R, in which one column would contain the list of plot names (strings) and the second column would be a list of variable ranges (vectors). additional column might contain other parameters for each plot.
So,
- Is there a suitable data structure in R?
- Is there a better way to go about it?
Thanks!