I want to make automatic report in R Markdown with multiple similar plots. I have a list which contains some similar data frames. I need a separate plot in output for each data frame. The main problem is that I need to reproduce this report with different conditions and length of the list can be different. I tried this solution:
for (i in 1:length(list.of.dfs)) {
plot(list.of.dfs[[i]])
}
But it didn't work.
Best Answer
(Can't post graphics in comments…not necessarily suggesting this is an answer)
The following:
produces:
Please check your data and/or provide a reproducible example.