Draw a line on a canvas
canvas_line(
canvas,
xs,
ys,
fill,
width,
arrow,
smooth,
capstyle,
joinstyle,
dash,
...
)
a tic_ui
'canvas' element.
vectors of coordinates
line colour
line width e.g. width = 2
where are arrowheads to be drawn? Default: 'none'. Possible values: 'none', 'first', 'last', 'both'
should the line be draw as quadratic beziers instead of line segements? logical. default: FALSE
Specifies the ways in which caps are to be drawn at the endpoints of the line: Possible values: butt, projecting, or round. If this option is not specified then it defaults to butt. Where arrowheads are drawn the cap style is ignored.
Specifies the ways in which joints are to be drawn at the vertices of the line. Possible values: bevel, miter, or round). If this option is not specified then it defaults to round.
Specifies the line's dash pattern. This should be a numeric
vector with alternating lengths of "dash" and "space-between-dash".
E.g. dash = c(6, 4, 2, 4)
produces a dotted-dashed line
other line creation options. See https://www.tcl.tk/man/tcl8.6/TkCmd/canvas.html#M26
Other canvas:
canvas_arc()
,
canvas_clear()
,
canvas_image()
,
canvas_oval()
,
canvas_plot()
,
canvas_polygon()
,
canvas_rect()
,
canvas_save()
,
canvas_text()
,
tic_canvas()