Package: svgparser 0.1.2

mikefc

svgparser: Read SVG as Grobs and Data Frames

Read SVG to grid graphics objects (i.e. grobs), and data.frames.

Authors:mikefc

svgparser_0.1.2.tar.gz
svgparser_0.1.2.zip(r-4.7)svgparser_0.1.2.zip(r-4.6)svgparser_0.1.2.zip(r-4.5)
svgparser_0.1.2.tgz(r-4.6-any)svgparser_0.1.2.tgz(r-4.5-any)
svgparser_0.1.2.tar.gz(r-4.7-any)svgparser_0.1.2.tar.gz(r-4.6-any)
svgparser_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
svgparser/json (API)
NEWS

# Install 'svgparser' in R:
install.packages('svgparser', repos = c('https://trevorld.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/coolbutuseless/svgparser/issues

Pkgdown/docs site:https://coolbutuseless.github.io

On CRAN:

Conda:

5.91 score 54 stars 60 scripts 3 exports 12 dependencies

Last updated from:eed57af521. Checks:7 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE149
source / vignettesOK205
linux-release-x86_64NOTE141
macos-release-arm64NOTE91
macos-oldrel-arm64NOTE104
windows-develNOTE99
windows-releaseNOTE96
windows-oldrelNOTE125
wasm-releaseOK114

Exports:load_supertinyiconread_svgsupertinyicon_names

Dependencies:clicssparsergluelifecyclemagrittrR6rlangselectrstringistringrvctrsxml2

Annotating ggplot2 with SVG

Rendered fromggplot2.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-12-01
Started: 2021-12-01

Creating and using a tileable SVG pattern in R grid graphics

Rendered fromtileable.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-12-01
Started: 2021-12-01

CSS and SVG

Rendered fromcss.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-12-01
Started: 2021-12-01

Debugging with False Colours

Rendered fromfalse-colours.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-12-01
Started: 2021-12-01

Plotting with grobs using {gggrid}

Rendered fromgggrid.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-12-01
Started: 2021-12-01

Readme and manuals

Help Manual

Help pageTopics
Apply the given transform to x,y coorddsapply_transform
Convert '<path>' arc to a data.frame of coordinatesarc_to_df
Convert cubic and quadratic beziers to data.frame of coordinates along curvebezier2_to_df bezier3_to_df
Create a data.frame for a rectangle with rounded cornerscreate_rect_df
Create a named list to store computed styles indexed by the xpath of each elementcss_calc_all_styles
Convert a string value from CSS into a numeric valuecss_value_as_numeric
data.frame creationdata_frame
Convert Ellipse parameters into a data.frame of coordsellipse_to_df
Get an element from an XML document by ID. Return NA if ID does not exist.get_element_by_id
Convert a gpar object to a data.framegpar_to_df
Break a string into labelled tokens based upon a set of patternslex
Load an SVG icon from the 'supertinyicons' icon packload_supertinyicon
Parse tokens representing a single transform instruction into a matrixparse_command_to_matrix
Parse xml representing some SVGparse_svg_group
Parse path into a list of parameters and meta-informationparse_svg_path_d
Parse an SVG tag of given typeparse_svg_circle parse_svg_ellipse parse_svg_image parse_svg_line parse_svg_linearGradient parse_svg_path parse_svg_polygon parse_svg_polyline parse_svg_radialGradient parse_svg_rect parse_svg_switch parse_svg_text parse_svg_use
Parse a transform string to a list of matrices - 1 per command. Mainly for debuggingparse_transform_string_to_matrices
Parse a transform string to asingle transform matrixparse_transform_string_to_matrix
Prepare complete list of control point coordinates for all bezierspath_list_expand_beziers
Convert path relative coordinates to absolute coordinatespath_list_to_abs_path_list
Convert a path list to a data.framepath_list_to_df
Internal function for perfroming do.call(rbind...)rbind_dfs
Brute force file reader that is not concerned with file endingsread_file
Read an svg file (or text) into a 'grid::grobTree' object or 'data.frame'read_svg
Pick the closest matching word from a list of words.shotgun_match
Convert a list of style information for an element to a 'gpar' objectstyle_to_gpar
Convert a list of style information to a viewport objectstyle_to_viewport
Names of icons in 'supertinyicons' setsupertinyicon_names
Convert an SVG colour to an R coloursvg_colour_to_r_colour
Trim the end off a word.trim
Update a transform matrix with an elementupdate_transform
Update a transform matrix with the new SVG transform stringupdate_transform_with_string