polygonTile: Add a polygon to a tile plot

Description Usage Arguments Details Value polygonTile-specific parameters Author(s) See Also

Description

Initializes a polygon graphic for inclusion in a tile plot.

Usage

1

Arguments

...

Any number of arguments given below. Must include exactly one horizontal dimension (x or top) and exactly one vertical dimension (y or right). All inputs should be identified by appropriate tags; i.e., use polygonTile(x=myxvar, y=myyvar), not polygonTile(myxvar,myyvar)

Details

This function does no plotting; instead, it creates a polygonTile object, or trace of plotting data, to be drawn on one or more plots in a tiled arrangement of plots. To complete the drawing include the object as an input to tile. From tile, it is possible to set further options including plot and axis titles, axis ranges and labels, logged axes, and annotations to the plot.

polygonTile simply creates a shaded region or polygon to add to a tile plot. It serves as the tile equivalent to the base graphics polygon or grid graphics polygonGrob, and is primarily useful for annotating plots which also use other traces.

To plot polygons to a location outside the plotting area, users might try combining clip="off", with coordinates placing the polygon in the desired spot.

Value

A polygonTile object, used only as an input to tile.

polygonTile-specific parameters

A call to polygonTile must provide an orthogonal pair of the following inputs:

x

coordinate vector of vertices to plot, attached to the x axis.

y

coordinate vector of vertices to plot, attached to the y axis.

top

coordinate vector of vertices to plot, attached to the top axis.

right

coordinate vector of vertices to plot, attached to the right axis.

Users will often wish to provide the following input:

plot

scalar or vector, the plot(s) in which this trace will be drawn; defaulting to the first plot. Plots are numbered consecutively from the top left, row-by-row. Thus in a 2 x 3 tiling, the first plot in the second row is plot number 4.

In addition to these polygonTile-specific parameters, users may provide any of the generic tile parameters documented in pointsTile.

Author(s)

Christopher Adolph cadolph@u.washington.edu

See Also

tile


chrisadolph/tileForShiny documentation built on Feb. 6, 2022, 12:34 a.m.