Description Usage Arguments Value Examples
This function can generate a ellipse form of SVG element The ellipse element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.
1 2 3 |
cx |
a number, x coordinate information |
cy |
a number, y corrdinate information |
rx |
a number, x radius of the ellipse |
ry |
a number, y radius of the ellipse |
fill |
a character, color of the ellipse, eg. "#000000"(default), "red" |
fill.opacity |
a number, stroke opacity of the ellipse, default:1. If the fill opacity is 0, the ellipse's internal color is invisible |
stroke |
a characher, color of the ellipse line, eg. "#000000"(default), "red" |
stroke.width |
a number, stroke width of the ellipse line, default: 1 |
stroke.opacity |
a number, stroke opacity of the ellipse line, default:1. If the stroke opacity is 0, the line is invisible |
stroke.dasharray |
a vector, plot the dotted ellipse line, eg. c(9, 5) |
style.sheet |
a vector or a chatacter, other style of the ellipse, eg. "stroke-linecap: round" |
the characher type of SVG element
1 2 | ellipse.svg(cx = 10, cy = 20, rx = 10, ry = 5, fill = "blue")
ellipse.svg(cx = 10, cy = 20, rx = 10, ry = 5, fill = "blue", stroke.width = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.