subscript_in_plots: subscript_in_plots

Description Usage Arguments Examples

View source: R/MarkdownReportsDev.R

Description

Returns a formatted string that you feed to main, xlab or ylab parameters of a plot Create an expression with subscript for axis labels. Parsed when provided to xlab or ylab of a function.

Usage

1
subscript_in_plots(prefix = "log", subscr = 2, quantity = "arbitrary units")

Arguments

prefix

String before the subscript.

subscr

Subscripted text.

quantity

String in brackets after the subscript, eg.: log2(read count).

Examples

1
2
plot (1, 1, xlab = subscript_in_plots(subscr = 10, quantity = "read count"),
 ylab = subscript_in_plots())

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