lim.axis.svg {easySVG}R Documentation

Generate SVG element of axis

Description

This function will generate a axis form SVG element.

Usage

lim.axis.svg(x = NULL, stroke = "#000000", stroke.width = 1,
  line.length = 100, axis.font.size = 8, digit = 2, span = 5,
  id = NULL, unit = NULL)

Arguments

x

a vector, the range of your number

stroke

a number, the line stroke of the axis

stroke.width

a number, the line stroke of the axis

line.length

a number, the line length of the axis

axis.font.size

a number, the axis font size of axis

digit

a number, the significant digits number of axis

span

a number, distance between number and axis line

id

a character, the id name of this axis

unit

the unit of this axis

Value

the characher type of SVG element

Examples

lim.axis.1 <- lim.axis.svg(x = c(100, 900), id = "test")
pack_info_1 <- pack.svg(pack.content = lim.axis.1)
# You can write it in a svg file
# message(pack_info_1)

lim.axis.2 <- lim.axis.svg(x = c(3.3, 4,5), id = "test", unit = 4000, axis.font.size = 4)
pack_info_2 <- pack.svg(pack.content = lim.axis.2)
# You can write it in a SVG file
# message(pack_info_2)


[Package easySVG version 0.1.0 Index]