Learn R Programming

svgtools (version 1.1.0)

Manipulate SVG (Template) Files of Charts

Description

The purpose of this package is to manipulate SVG files that are templates of charts the user wants to produce. In vector graphics one copes with x-/y-coordinates of elements (e.g. lines, rectangles, text). Their scale is often dependent on the program that is used to produce the graphics. In applied statistics one usually has numeric values on a fixed scale (e.g. percentage values between 0 and 100) to show in a chart. Basically, 'svgtools' transforms the statistical values into coordinates and widths/heights of the vector graphics. This is done by stackedBar() for bar charts, by linesSymbols() for charts with lines and/or symbols (dot markers) and scatterSymbols() for scatterplots.

Copy Link

Version

Install

install.packages('svgtools')

Monthly Downloads

502

Version

1.1.0

License

GPL-3

Maintainer

Konrad Oberwimmer

Last Published

December 14th, 2021

Functions in svgtools (1.1.0)

referenceBar

Adjust (stacked) bar chart that is aligned around a reference category
percentileBar

Adjust (stacked) bar chart representing percentiles
read_svg

Read SVG file and return XML document
display_svg

Display SVG on standard graphic display port
linesSymbols

Adjust line and/or symbol charts
stackedBar

Adjust (stacked) bar chart to values on a given scale
summary_svg

Print summary of SVG file structure in console
write_svg

Writes SVG to file
diffBar

Adjust bar chart where bars lie to the left/right or bottom/top of a given nullvalue
changeText

Change text of text elements
scatterSymbols

Adjust symbols of a scatter plot