Learn R Programming

microplot (version 1.0-16)

layoutCollapse: Set the lattice par.settings to remove all marginal space.

Description

Set the lattice par.settings to remove all marginal space. By default everything in layout.heights or layout.widths is set to 0 except for panel. The user can specify values for all the standard items in either of those items.

Usage

layoutHeightsCollapse(...)
layoutWidthsCollapse(...)

Arguments

Any item name in layout.heights for layoutHeightsCollapse or in layout.widths for layoutWidthsCollapse.

Value

A list which may be used as input to the par.settings argument in a lattice call.

Details

When very small plots are placed inside a LaTeX tabular environment, it is often helpful to suppress margins, axes, labels, titles.

Examples

Run this code
# NOT RUN {
lattice::trellis.par.get("layout.heights")
lattice::trellis.par.get("layout.widths")
layoutHeightsCollapse()
layoutWidthsCollapse()
layoutWidthsCollapse(axis.left=1)

## Please see the package documentation for a simple example in context.

## Please see the demos for more interesting examples.
## demo(package="microplot")
# }

Run the code above in your browser using DataLab