draw_brush: Draw the brush rectangle

Description Usage Arguments Value Author(s) Examples

View source: R/brush.R

Description

Draw a rectangle with a spot according to the information in the meta data.

Usage

1
draw_brush(layer, painter, data, meta)

Arguments

layer,painter

the painter of the layer on which to draw the brush

data

the data created by qdata; a brush object is in brush(data); the color and line width of the brush are stored in this object

meta

the meta data (has a least these two components: meta$pos and meta$brush.size)

Value

NULL

Author(s)

Yihui Xie <http://yihui.name>

Examples

1
## see the source code of, e.g., qbar() for its usage

ggobi/cranvas documentation built on May 17, 2019, 3:10 a.m.