| panderOptions {pander} | R Documentation |
Querying/setting pander option
Description
To list all pander options, just run this function without any parameters provided. To query only one value, pass the first parameter. To set that, use the value parameter too.
Usage
panderOptions(o, value)
Arguments
o |
option name (string). See below. |
value |
value to assign (optional) |
Details
The following pander options are available:
-
digits: numeric (default:2) passed toformat. Can be a vector specifying values for each column (has to be the same length as number of columns). Values for non-numeric columns will be disregarded. -
decimal.mark: string (default:.) passed toformat -
formula.caption.prefix: string (default:'Formula: ') passed topandoc.formulato be used as caption prefix. Be sure about what you are doing if changing to other than'Formula: 'or':'. -
big.mark: string (default: ”) passed toformat. -
round: numeric (default:Inf) passed toround. Can be a vector specifying values for each column (has to be the same length as number of columns). Values for non-numeric columns will be disregarded. -
keep.trailing.zeros: boolean (default:FALSE) to show or remove trailing zeros in numbers -
keep.line.breaks: boolean (default:FALSE) to keep or remove line breaks from cells in a table -
missing: string (default:NA) to replace missing values in vectors, tables etc. -
date: string (default:'%Y/%m/%d %X') passed toformatwhen printing dates (POSIXctorPOSIXt) -
header.style:'atx'or'setext'passed topandoc.header -
list.style:'bullet','ordered'or'roman'passed topandoc.list. Please not that this has no effect onpandermethods. -
table.style:'multiline','grid','simple'or'rmarkdown'passed topandoc.table -
table.emphasize.rownames: boolean (default:TRUE) if row names should be highlighted -
table.split.table: numeric passed topandoc.tableand also affectspandermethods. This option tellspanderwhere to split too wide tables. The default value (80) suggests the conventional number of characters used in a line, feel free to change (e.g. toInfto disable this feature) if you are not using a VT100 terminal any more :) -
table.split.cells: numeric or numeric vector (default:30) passed topandoc.tableand also affectspandermethods. This option tellspanderwhere to split too wide cells with line breaks. Numeric vector specifies values for cells separately. SetInfto disable. -
table.caption.prefix: string (default:'Table: ') passed topandoc.tableto be used as caption prefix. Be sure about what you are doing if changing to other than'Table: 'or':'. -
table.continues: string (default:'Table continues below') passed topandoc.tableto be used as caption for long (split) without a use defined caption -
table.continues.affix: string (default:'(continued below)') passed topandoc.tableto be used as an affix concatenated to the user defined caption for long (split) tables -
table.alignment.default: string (default:centre) that defines the default alignment of cells. Can beleft,rightorcentrethat latter can be also spelled ascenter. -
table.alignment.rownames: string (default:centre) that defines the alignment of rownames in tables. Can beleft,rightorcentrethat latter can be also spelled ascenter. -
use.hyphening: boolean (default:FALSE) if try to use hyphening when splitting large cells according to table.split.cells. Requires sylly. -
evals.messages: boolean (default:TRUE) passed toevals'pandermethod specifying if messages should be rendered -
p.wrap: a string (default:'_') to wrap vector elements passed topfunction -
p.sep: a string (default:', ') with the main separator passed topfunction -
p.copula: a string (default:' and ') with ending separator passed topfunction -
plain.ascii: boolean (default:FALSE) to define if output should be in plain ascii or not -
graph.nomargin: boolean (default:TRUE) if trying to keep plots' margins at minimal -
graph.fontfamily: string (default:'sans') specifying the font family to be used in images. Please note, that using a custom font on Windows requiresgrDevices:::windowsFontsfirst. -
graph.fontcolor: string (default:'black') specifying the default font color -
graph.fontsize: numeric (default:12) specifying the base font size in pixels. Main title is rendered with1.2and labels with0.8multiplier. -
graph.grid: boolean (default:TRUE) if a grid should be added to the plot -
graph.grid.minor: boolean (default:TRUE) if a miner grid should be also rendered -
graph.grid.color: string (default:'grey') specifying the color of the rendered grid -
graph.grid.lty: string (default:'dashed') specifying the line type of grid -
graph.boxes: boolean (default:FALSE) if to render a border around of plot (and e.g. around strip) -
graph.legend.position: string (default:'right') specifying the position of the legend: 'top', 'right', 'bottom' or 'left' -
graph.background: string (default:'white') specifying the plots main background's color -
graph.panel.background: string (default:'transparent') specifying the plot's main panel background. Please note, that this option is not supported withbasegraphics. -
graph.colors: character vector of default color palette (defaults to a colorblind theme: https://jfly.uni-koeln.de/color/). Please note that this update work withbaseplots by appending thecolargument to the call if not set. -
graph.color.rnd: boolean (default:FALSE) specifying if the palette should be reordered randomly before rendering each plot to get colorful images -
graph.axis.angle: numeric (default:1) specifying the angle of axes' labels. The available options are based onpar(les)and sets if the labels should be:-
1: parallel to the axis, -
2: horizontal, -
3: perpendicular to the axis or -
4: vertical.
-
-
graph.symbol: numeric (default:1) specifying a symbol (see thepchparameter ofpar) -
knitr.auto.asis: boolean (default:TRUE) if the results ofpandershould be considered as'asis'inknitr. Equals to specifyingresults='asis'in the R chunk, so thus there is no need to do so if set toTRUE. -
pandoc.binary: full path ofpandoc's binary. By default,pandocis in the path.
See Also
Examples
## Not run:
panderOptions()
panderOptions('digits')
panderOptions('digits', 5)
## End(Not run)