Description Usage Arguments Value Examples
This function can generate a polyline form SVG element The <polyline> SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the <polygon> element.
1 2 | polyline.svg(points = NULL, fill, stroke, stroke.width, stroke.opacity,
style.sheet = NULL)
|
points |
a matrix, a series of coordinates |
fill |
a character, color of the polyline, eg. "#000000"(default), "red" |
stroke |
a characher, color of the polyline line, eg. "#000000"(default), "red" |
stroke.width |
a number, stroke width of the polyline line, default: 1 |
stroke.opacity |
a number, stroke opacity of the polyline line, default:1. If the stroke opacity is 0, the polygon line is invisible |
style.sheet |
a vector or a chatacter, other style of the polyline, 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.