circle.svg {easySVG}R Documentation

Generate circle SVG element

Description

This function can generate a circle form SVG element

Usage

circle.svg(cx = NULL, cy = NULL, r = 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

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"

Details

The <circle> SVG element is an SVG basic shape, used to create circles based on a center point and a radius.

Value

the characher type of SVG element

Examples

circle.svg(cx = 10, cy = 20, r = 10, fill = "blue")
circle.svg(cx = 10, cy = 20, r = 10, fill = "blue", stroke.width = 2)


[Package easySVG version 0.1.0 Index]