powered by
This function can generate a circle form SVG element
circle.svg(cx = NULL, cy = NULL, r = NULL, fill, fill.opacity, stroke, stroke.width, stroke.opacity, stroke.dasharray, style.sheet = NULL)
a number, x coordinate information
a number, y corrdinate information
a number, radius of the circle
a character, color of the circle, eg. "#000000"(default), "red"
a number, stroke opacity of the circle, default:1. If the fill opacity is 0, the circle's internal color is invisible
a characher, color of the circle line, eg. "#000000"(default), "red"
a number, stroke width of the circle line, default: 1
a number, stroke opacity of the circle line, default:1. If the stroke opacity is 0, the line is invisible
a vector, plot the dotted circle line, eg. c(9, 5)
a vector or a chatacter, other style of the circle, eg. "stroke-linecap: round"
the characher type of SVG element
The <circle> SVG element is an SVG basic shape, used to create circles based on a center point and a radius.
# NOT RUN { circle.svg(cx = 10, cy = 20, r = 10, fill = "blue") circle.svg(cx = 10, cy = 20, r = 10, fill = "blue", stroke.width = 2) # }
Run the code above in your browser using DataLab