new_points | R Documentation |
A points shape is one or more x-y pairs.
new_points( pj, x, y, order = "x", region = ".", look = NULL, mod = NULL, name = "." )
pj |
an object of class |
x |
numeric vector defining the horizontal location of each point. |
y |
numeric vector defining the vertical location of each point. |
order |
character scalar |
region |
either character scalar |
look |
an optional list containing up to four lists specifying looks to
apply to the shape. See the using |
mod |
an optional list containing up to four lists specifying
modifications to apply to the shape. See the using |
name |
character scalar indicating a name for the shape. The special
value |
pj
with the addition of the specified point shape.
look
to make shapes appearBy itself, this function
simply defines the location of x-y pairs in the assigned region for the
specified shape. Various looks can be added to the shape using the
look
parameter or via the add_ci
,
add_glyphs
, add_labels
, and
add_marks
functions. Sub-lists of the look argument must be
named 'ci'
, 'glyph'
, 'label'
, and/or 'mark'
to
indicate that a confidence interval, glyphs (single characters), labels,
and/or point marks be added to the shape.
The argument set {x, y, order}
is
recycled.
mod
to transform shapesShapes can be transformed in
four ways: dilation, reflection, rotation, and translation/. using the
mod
argument or the mod_dilate
,
mod_reflect
, mod_rotate
, and
mod_translate
. Sub-lists of the mod
argument must be
named 'dilate'
, 'reflect'
, 'rotate'
, and/or
'translate'
to indicate that a dilation, reflection, rotation, and
or translation be applied to the shape.
Other new_simples:
new_reflines()
,
new_segments()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.