glyphs: Create the data needed to generate a glyph plot.

Description Usage Arguments

Description

Create the data needed to generate a glyph plot.

Usage

1
2
3
4
  glyphs(data, x_minor, y_minor, x_major = NULL,
    y_major = NULL, polar = FALSE, height = rel(0.95),
    width = rel(0.95), y_scale = identity,
    x_scale = identity, quiet = FALSE)

Arguments

data

A data frame containing variables named in x_minor, y_minor, x_major and y_major.

x_minor,y_minor,x_major,y_major

The name of the variable (as a string) for the major and minor x and y axes. Together, each unique

polar

A logical of length 1, specifying whether the glyphs should be drawn in polar coordinates. Defaults to FALSE.

height,width

The height and width of each glyph. Defaults to 95% of the resolution of the data. Specify the width absolutely by supplying a numeric vector of length 1, or relative to the

y_scale,x_scale

The scaling function to be applied to each set of minor values within a grid cell. Defaults to identity so that no scaling is performed.


garrettgman/modelglyphs documentation built on May 16, 2019, 5:39 p.m.