panel.outlinelevelplot: Panel Function for desplot

Description Usage Arguments Details References

View source: R/desplot.R

Description

This is a panel function for desplot which fills cells with a background color and adds outlines around blocks of cells.

Usage

1
2
panel.outlinelevelplot(x, y, z, subscripts, at, ..., alpha.regions = 1, out1f,
  out1g, out2f, out2g)

Arguments

x

Coordinates

y

Coordinates

z

Value for filling each cell.

subscripts

For compatability.

at

Breakpoints for the colors.

...

Other

alpha.regions

Transparency for fill colors. Not well tested.

out1f

Factors to use for outlining.

out1g

Factors to use for outlining.

out2f

Graphics parameters to use for outlining.

out2g

Graphics parameters to use for outlining.

Details

It does not add the text labels, numbers, or colors.

The rule for determining where to draw outlines is to compare the levels of the factor used for outlining. If bordering cells have different levels of the factor, then a border is drawn. 'NA' values are ignored (otherwise, too many lines would be drawn).

The code works, but is probably overkill and has not been streamlined.

References

Derived from lattice::panel.levelplot


desplot documentation built on April 3, 2018, 5:03 p.m.