ref_points: Corner points reference glyph

Description Usage Arguments Details See Also

Description

ref_points creates a layer of reference points to be plotted behind a layer of glyphs. Each glyph is given four reference points, which are plotted one in each corner of the glyph's two dimensional range. Reference points make it easier to determine the location of an object within a glyph and to compare objects across glyphs. Reference lines can also convey information on their own through colour, alpha, and size mappings. By default the colour parameter of a reference line is set to white.

Usage

1
2
  ref_points(mapping = NULL, colour = "white", size = 1/2,
    ...)

Arguments

mapping

An aesthetic mapping, usually constructed with aes.

colour

The color, as a character string, to be used as the color if color is not specified in the mapping

size

The size of the points, to be used as the color if size is not specified in the mapping

...

other arguments to be used as parameters in the reference box layer

Details

ref_points is a second order function. It returns a function that can be used to create a layer of reference points with the specified mapping and parameters. The output of ref_points is intended to be passed as the reference argument for grid or glyph.

See Also

ref_box, ref_hline and ref_vline


garrettgman/ggplyr documentation built on May 16, 2019, 5:38 p.m.