pdfA4plot_on.layout: pdfA4plot_on.layout

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

Create A4 PDFs to plot multiple subplots in one file with custom numbers of columns in each row. Fancy layout version of pdfA4plot_on()

Usage

 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)
)

Arguments

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

Examples

1
2
pdfA4plot_on.layout(pname = "MyA4_w_layout");  hist(rnorm(100)); hist(-rnorm(100))
hist(10+rnorm(100)); pdfA4plot_off()

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.