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