ellipse.svg: Generate ellipse SVG element

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
3
ellipse.svg(cx = NULL, cy = NULL, rx = NULL, ry = NULL, fill,
  fill.opacity, stroke, stroke.width, stroke.opacity, stroke.dasharray,
  style.sheet = NULL)

Arguments

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"

Value

the characher type of SVG element

Examples

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)

ytdai/easySVG documentation built on May 29, 2019, 12:18 p.m.