Provides helper functions to construct the SVG path 'd' https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/d attribute string. Supports all standard SVG path commands including 'moveto', 'lineto', 'closepath', quadratic and cubic Bézier curves, and elliptical arc curves. Also provides convenience wrappers for common shapes such as arcs, circles, ellipses, polygons, slashes, and stars. Coordinates may be supplied as numeric vectors or as 'affiner' coordinate objects and an option is available to automatically round them to a target number of decimal places for more compact svg strings. An option is also available to use a bottom-left origin (as is conventional in R graphics) rather than the top-left origin used by SVG.
Package options
The following dee option may be set globally via base::options():
- dee.attrs
plot.dee()passes this toomsvg::svg_path()'sattrsargument.- dee.background_color
Passed to
plot.dee()'sbackground_colorargument.- dee.digits
Passed to
digitsargument of svg d path command functions.- dee.fill
plot.dee()passes this toomsvg::svg_path()'sfillargument.- dee.height
Passed to
heightarguments; the height of svg image (in pixels).- dee.origin_at_bottom
Passed to
origin_at_bottomargument of svg d path command functions.- dee.sep
Passed to
separgument of svg d path command functions.- dee.stroke
plot.dee()passes this toomsvg::svg_path()'sstrokeargument.- dee.stroke_width
plot.dee()passes this toomsvg::svg_path()'sstroke_widthargument.- dee.width
Passed to
widtharguments; the width of svg image (in pixels).
Author
Maintainer: Trevor L. Davis trevor.l.davis@gmail.com (ORCID)
Authors:
Trevor L. Davis trevor.l.davis@gmail.com (ORCID)