Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Create A4 PDFs to plot multiple subplots in one file with custom numbers of columns in each row. Fancy layout version of pdfA4plot_on()
1 2 3 4 5 6 7 8 9 10 | pdfA4plot_on.layout(
pname = date(),
...,
layout_mat = rbind(1, c(2, 3), 4:5),
w = unless.specified("b.defSize.fullpage", 8.27),
h = 11.69,
one_file = TRUE,
mdlink = ww.set.mdlink(),
title = ww.ttl_field(pname)
)
|
pname |
Title of the plot (main parameter) and also the name of the file. |
... |
Pass any other parameter of the corresponding plotting function (most of them should work). |
layout_mat |
A matrix of plot layout. Default: rbind(1, c(2, 3), 4:5) |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
one_file |
Allows multiple figures in one file, if true (default). Set to FALSE to use with pheatmap / grid.base |
mdlink |
Insert a .pdf and a .png image link in the markdown report, set by "path_of_report". |
title |
Manually set the title field of the PDF file |
1 2 | pdfA4plot_on.layout(pname = "MyA4_w_layout"); hist(rnorm(100)); hist(-rnorm(100))
hist(10+rnorm(100)); pdfA4plot_off()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.