shape: Geom shape

Description Usage Arguments See Also

Description

Describe a shape for an entire geom or for certain fields.

Usage

1
shape(geom, field, value = NULL)

Arguments

geom

A geom object, e.g. a call to line, point, etc.

field

A character string specifying a data field.

value

A character string, unnamed character vector, or named character vector or list. (as with color, a function can be supplied in native G2, however as of now there is no good way to translate R functions to JavaScript functions).

The following shapes are available for each geom,

point: "hollowCircle", "hollowSquare", "hollowDiamond", "hollowBowtie", "hollowTriangle", "hollowHexagon", "cross", "tick", "plus", "hyphen", and "line"

line: "line", "smooth", "dash", "dot", and "spline"

area: "area", "line", and "smoothLine"

interval: "rect", "hollowRect", "line", and "tick"

polygon: "polygon" and "hollow"

schema: "box" and "candle"

See Also

Other geom methods: adjust, color, opacity, position, size


nteetor/golly documentation built on May 16, 2019, 8:12 p.m.