Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Create A4 PDFs to plot multiple subplots in one file
1 2 3 4 5 6 7 8 9 10 11 | pdfA4plot_on(
pname = date(),
...,
w = unless.specified("b.defSize.fullpage", 8.27),
h = 11.69,
rows = 4,
cols = rows - 1,
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). |
w |
Width of the saved pdf image, in inches. c("A4" = 8.27, "1col.nature" = 3.50, "2col.nature" = 7.20, "1col.cell" = 3.35, "1.5col.cell" = 4.49, "2col.cell" = 6.85). |
h |
Height of the saved pdf image, in inches. |
rows |
Number of rows for subplots |
cols |
Number of columns for subplots |
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(pname = "MyA4plots"); 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.