Re: [R] Using rmarkdown with many plots created in a loop

2018-08-20 Thread Richard M. Heiberger
## Don, ## This is how I would approach the task of a set of coordinated plots. ## I would place individual plots inside a table. The rows would index the ## datasets and there would be one or more data or description columns ## in addition to the column containing the graphs. ## I use the micro

Re: [R] Using rmarkdown with many plots created in a loop

2018-08-20 Thread Thierry Onkelinx
Dear Don, Have a look at the knit_expand() function. Then you can create two Rmd files. One main file and one template file for the subsets. knit_expand() will find and replace anything between double curly brackets ("{{x}}" in the example below) with the value of the variable. The main file: --

[R] Using rmarkdown with many plots created in a loop

2018-08-16 Thread MacQueen, Don via R-help
I would appreciate some suggestions of a good way to prepare a report using rmarkdown, in which I loop through subsets of a data set, creating a plot of each subset, and interspersing among the figures some text relevant to each figure. One way is to have an R script write the rmd file, then ren