Description Usage Arguments Value Examples
This function will generate a axis form SVG element.
1 2 3 | 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)
|
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 |
the characher type of SVG element
1 2 3 4 5 6 7 8 9 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.