pack.svg: pack svg

Description Usage Arguments Value Examples

View source: R/base.R

Description

pack svg

Usage

1
2
pack.svg(width = 1200, height = 800, output.svg.name = NULL,
  pack.content = pack.content)

Arguments

width

a number, width of the plot

height

a number, height of the plot

output.svg.name

a character, the output svg file name

pack.content

a character or a list, group content

Value

the characher type of svg element

Examples

1
2
3
4
5
pack.svg(pack.content = "<text x=\"10\" y=\"20\"> this is a svg element </text>")
pack.content <- list(svg1 = "<text x=\"10\" y=\"20\"> this is a svg element </text>",
                     svg2 = "<text x=\"10\" y=\"40\"> this is a svg element </text>")
pack_info <- pack.svg(pack.content = pack.content)
message(pack_info)

easySVG documentation built on May 2, 2019, 7:27 a.m.