Description Usage Arguments Value Examples
This function can generate a rect form SVG element The <rect> element is a basic SVG shape that creates rectangles, defined by their corner's position, their width, and their height. The rectangles may have their corners rounded.
1 2 3 |
x |
a number, x coordinate information |
y |
a number, y corrdinate information |
width |
a number, width of the rect |
height |
a number, height of the rect |
rx |
a number, x coordinate of rounded rectangle |
ry |
a number, y coordinate of rounded rectangle |
fill |
a character, color of the rect, eg. "#000000"(default), "red" |
fill.opacity |
a number, stroke opacity of the rect, default:1. If the fill opacity is 0, the rect's internal color is invisible |
stroke |
a characher, color of the rect line, eg. "#000000"(default), "red" |
stroke.width |
a number, stroke width of the rect line, default: 1 |
stroke.opacity |
a number, stroke opacity of the rect line, default:1. If the stroke opacity is 0, the line is invisible |
stroke.dasharray |
a vector, plot the dotted rect line, eg. c(9, 5) |
style.sheet |
a vector or a chatacter, other style of the rect, 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.