Description Usage Arguments Value
Read an svg file (or text) into a grid::grobTree
object or data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
svg_file |
either a filename, or a single character string containing all the text of
an SVG. Filenames may either be |
xoffset, yoffset |
Extra offsets to element coordinates applied in the grob coordinate system (not the SVG coordinate system). Default: (0, 0) |
npoints |
number of segmentation points per section of bezier, arc, circle or ellipse. Default 30 Increase this number if the curves look too jaggy for your use case. |
scale |
Scale factor to apply to all coordinates. Default: 1. |
default.units |
the grid units to use throughout. The default ( |
stroke_scale |
Default: 1. Multiplication factor for width of strokes. The value to use here is heavily dependent upon what size output you are rendering to. |
font_scale |
extra scaling applied to font parameters. Default: 1. The value to use here is heavily dependent upon the output size you are rendering to. |
style_default |
a named list of CSS properties which should override
the defaults. default: |
user_css |
single string containing CSS text e.g. "circle { fill: red !important; }".
Note: Normal cascading style rules apply i.e. more specific rules override
those with lower specificity, and inline style specifications have the highest specificty.
You may need to use |
obj_type |
What kind of R object to return - choices
The 'list' and 'data.frame' options are for advanced/debugging use, but some users may find them useful if trying to extract coordinate information etc. The The The
|
false_colour |
Use false colouring on all elements, by selecting random
colours from palettes in |
Return type determined by obj_type
argument
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.