powered by
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.
ellipse.svg(cx = NULL, cy = NULL, rx = NULL, ry = 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, x radius of the ellipse
a number, y radius of the ellipse
a character, color of the ellipse, eg. "#000000"(default), "red"
a number, stroke opacity of the ellipse, default:1. If the fill opacity is 0, the ellipse's internal color is invisible
a characher, color of the ellipse line, eg. "#000000"(default), "red"
a number, stroke width of the ellipse line, default: 1
a number, stroke opacity of the ellipse line, default:1. If the stroke opacity is 0, the line is invisible
a vector, plot the dotted ellipse line, eg. c(9, 5)
a vector or a chatacter, other style of the ellipse, eg. "stroke-linecap: round"
the characher type of SVG element
# NOT RUN { 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) # }
Run the code above in your browser using DataLab