draw_line: Create a line SVG Element

Description Usage Arguments

View source: R/draw.R

Description

A <line> element connects two given points with a line.

Usage

1
2
draw_line(x1 = 0L, x2 = 0L, y1 = 0L, y2 = 0L, stroke,
          `stroke-dasharray`, class, id, animate)

Arguments

x1

numeric indicating the starting position on the x-axis.

y1

numeric indicating the starting position on the y-axis.

x2

numeric indicating the end position on the x-axis.

y2

numeric indicating the end position on the y-axis.

stroke

expression setting the stroke attribute.

'stroke-dasharray'

expression setting the stroke-dasharray attribute.

class

expression setting the class attribute.

id

expression setting the id attribute.

animate

expression adding an animate SVG element.


be-pr/drawsvg documentation built on Dec. 8, 2020, 3:34 a.m.