Learn R Programming

pander (version 0.3.1)

panderOptions: 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
  • decimal.mark: numeric (default:.) passed toformat
  • round: numeric (default:Inf) passed toround
  • 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'or'simple'passed topandoc.table
  • 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 (default:30) passed topandoc.tableand also affectspandermethods. This option tellspanderwhere to split too wide cells with line breaks. SetInfto disable.
  • 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
  • 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 thebasefont 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. Pleasenote, that this option is not supported withbasegraphics.
  • graph.colors: character vector of default color palette (defaults to a colorblind theme:http://jfly.iam.u-tokyo.ac.jp/color/). Pleasenotethat 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)

See Also

evalsOptions

Examples

Run this code
panderOptions()
panderOptions('digits')
panderOptions('digits', 5)

Run the code above in your browser using DataLab