I have a list called sim_1[[2]] that looks like this:
## [[1]]
## m1 m2 m3 m4 m5 m6 m7 m8 m9
## 1 2.516 1.642 1.113 1.0799 1.0844 0.9667 0.9671 0.9943 0.9961
## 2 2.617 1.647 1.173 1.1399 1.1201 0.9958 0.9950 1.0193 1.0183
## 3 2.594 1.587 1.167 1.1264 1.1265 0.9987 1.0062 1.0086 1.0144
## 4 2.625 1.707 1.203 1.1574 1.1565 1.0491 1.0473 1.0474 1.0480
## 5 2.584 1.572 1.117 1.0696 1.0672 0.9866 0.9879 0.9838 0.9834
....................
And below is my code for generating barplot:
barplot(table(colnames(sim_1[[2]])[apply(sim_1[[2]], 1, which.min)]),
xlab = "Models",
ylab = "Frequency",
main = expression("Frequency of chosen model for"~sigma~"="~1),
col = "lightsteelblue",
border = "darkred"
)
I should have m1 to m9 models but my barplot is only showing 4 of them. Why is this happening?

