make_pdf | R Documentation |
A utility to generate a PDF file ready for printing labels.
make_pdf(
ids,
layout,
byRow = TRUE,
sublabel = NULL,
printing = NULL,
file = "Labels.pdf",
...
)
ids |
A character vector of IDs as generated by
|
layout |
A |
byRow |
By default ( |
sublabel |
An optional character vector that will be printed under the
ID. This allows the replicate label (for the same ID) to be distinguished
(to label, for example, different samples, tissues, replicate numbers,
collection sites or dates). When |
printing |
An optional character to identify multiple copies of the same label sheet. Default is to ignore this feature. |
file |
The name of the file to be written to. The default is
|
... |
Additional parameters passed to |
This function generates a PDF document that can be printed directly to sheets of labels/stickers for the easy and clear identification of experimental samples. The default behaviour is to print the same ID across all labels in a row, with a different ID for each row.
make_ids
. Also see
pdf
for detail on additional PDF printing
parameters.
require(idLabelR)
example_spreadsheet = system.file("extdata", "Example.txt", package = "idLabelR")
ids = make_ids(file = example_spreadsheet)
layout = get_layout("cryobabies_LCRY_1700_A4")
make_pdf(ids, layout)
# Additionally prints a timestamp and identifier
# to distinguish repeated printings of the same page.
make_pdf(ids, layout, printing = "a")
# 17 rows of 5 labels for each ID.
make_pdf(ids, layout, byRow = TRUE, file = "Labels_by_row.pdf")
# 5 columns of 17 labels for each ID.
make_pdf(ids, layout, byRow = FALSE, file = "Labels_by_col.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.