new_reflines | R Documentation |
A reference lines shape is a collection of lines going from edge
to edge of a plotting region (without regard to any pad reserved around the
edges of the region) that use the same subset of locating arguments
(x1
, y1
, a
, i
, s
, x2
, y2
,
and au
). Reference lines can be defined in a variety of ways as
described in the defining reference lines section.
new_reflines( pj, x1, y1, ref = "i", x2 = NA, y2 = NA, s = NA, i = NA, a = NA, au = "r", region = ".", look = NULL, mod = NULL, name = "." )
x1 |
|
y1 |
|
ref |
|
x2 |
|
y2 |
|
s |
|
i |
|
a |
|
au |
|
pj
with the addition of the specified refline shape(s).
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_lines
function. The
sub-list of the look argument must be named 'line'
.
The argument set {ref, x1, y1, x2, y2, s,
i, a, au}
is recycled.
Valid combinations of non-NA
locating arguments are given below.
ref
Pre-defined reference line
x1
Vertical line at x1
.
y1
Horizontal line at y1
.
x1 + y1 + x2 + y2
Point-point definition (line through
(x1, y1)
and (x2, y2)
).
x1 + y1 + a
Point-angle definition (line through
(x1, y1)
at angle a
).
x1 + y1 + i
Point-intercept definition (line through
intercept and (x1, y1)
).
x1 + y1 + s
Point-slope definition (line through
(x1, y1)
with slope s
).
a + i
Angle-intercept definition (line through intercept
at angle a
).
s + i
Slope-intercept definition (line through intercept
with slope s
.
Other new_simples:
new_points()
,
new_segments()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.