draw_svg: Create an SVG Object

Description Usage Arguments

View source: R/draw.R

Description

Write an SVG object to a file or connection.

Usage

1
2
draw_svg(..., width, height, version, preserveAspectRatio,
         file, viewBox = c(x = 0L, y = 0L, width = 0L, height = 0L))

Arguments

...

character vectors specifying the elements of the SVG.

width

expression that sets the width attribute.

height

expression that sets the height attribute.

version

expression specifying the SVG version number.

preserveAspectRatio

expression indicating how an SVG object with a viewBox, which provides a given aspect ratio, must fit into a viewport with a different aspect ratio.

file

a connection or a character naming the file the SVG is written to.

viewBox

numeric defining the position and dimension of the SVG object in user space.


be-pr/drawsvg documentation built on Dec. 8, 2020, 3:34 a.m.