Description Usage Arguments Value Examples
This function will generate a line form SVG element. The <line> element is an SVG basic shape used to create a line connecting two points.
1 2 |
x1 |
a number, x1 coordinate information |
y1 |
a number, y1 corrdinate information |
x2 |
a number, x2 corrdiante information |
y2 |
a number, y2 corrdinate information |
stroke |
a characher, color of the line, eg. "#000000"(default), "red" |
stroke.width |
a number, stroke width of the line, default: 1 |
stroke.opacity |
a number, stroke opacity of the line, default:1. If the stroke opacity is 0, the line is invisible |
stroke.dasharray |
a vector, plot the dotted line, eg. c(9, 5) |
style.sheet |
a vector or a chatacter, other style of the line, eg. "stroke-linecap: round" |
the characher type of SVG element
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.