I have a list called: list_plot
list_plot=list(list(a = c(2, 3, 4, 5), b = c(3, 4, 5, 5), c = c(3, 7, 5,
5), d = c(3, 4, 9, 5), e = c(3, 4, 5, 9), f = c(3, 4, 1, 9),
g = c(3, 1, 5, 9), h = c(3, 3, 5, 9), i = c(3, 17, 3, 9),
j = c(3, 17, 3, 9)), list(a = c(2, 3, 4, 5), b = c(3, 4,
5, 5), c = c(3, 7, 5, 5), d = c(3, 4, 9, 5), e = c(3, 4, 5, 9
), f = c(3, 4, 1, 9), g = c(3, 1, 5, 9), h = c(3, 3, 5, 9), i = c(3,
17, 3, 9), j = c(3, 17, 3, 9)), list(a = c(2, 3, 4, 5), b = c(3,
4, 5, 5), c = c(3, 7, 5, 5), d = c(3, 4, 9, 5), e = c(3, 4, 5,
9), f = c(3, 4, 1, 9), g = c(3, 1, 5, 9), h = c(3, 3, 5, 9),
i = c(3, 17, 3, 9), j = c(3, 17, 3, 9)), list(a = c(2, 3,
4, 5), b = c(3, 4, 5, 5), c = c(3, 7, 5, 5), d = c(3, 4, 9, 5
), e = c(3, 4, 5, 9), f = c(3, 4, 1, 9), g = c(3, 1, 5, 9), h = c(3,
3, 5, 9), i = c(3, 17, 3, 9), j = c(3, 17, 3, 9)), list(a = c(2,
3, 4, 5), b = c(3, 4, 5, 5), c = c(3, 7, 5, 5), d = c(3, 4, 9,
5), e = c(3, 4, 5, 9), f = c(3, 4, 1, 9), g = c(3, 1, 5, 9),
h = c(3, 3, 5, 9), i = c(3, 17, 3, 9), j = c(3, 17, 3, 9)))
In this list_plot [[i]]
, i
goes from 1 to 5. This list has 10 entries, j = 10
(list_plot [[i]] [j]
).
So, for me to get the input one I do this: list_plot [[i]] [1]
Each list_plot [[i]] [j]
is a series of numbers that I plot a chart. Here is the code for this graphic:
for (i in 1: 5) {
for (j in 1:10){
x11 ()
par (mfrow = c (3.2))
plot.ts (list_plot [[i]] [j])
}
}
It is showing an error. I want that when i = 1
, it goes through allj
, which goes from 1 to 10. Then, it can start i = 2
, traversing all j, which again goes from 1 to 10. That is, when i = 1
the priority is now to finish j. When i = 2
the priority is to end allj``s and so on.
Any help?