Description Usage Arguments Details Value
View source: R/css-style-to-gp-vp.R
Convert a named list of CSS style information into a gpar object. E.g.
list(stroke = 'black')
is converted to gpar(col = 'black')
.
1 | style_to_gpar(style, state)
|
style |
named list of style properties for an element. E.g.
|
state |
state information. See inline documentation for |
This function handles stroke and fill colours (and separate alphas for each), fonts, linear and radial gradients, line parameters (width, join and end types etc).
Not yet done:
Conversion of line type information from CSS to gpar
gpar object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.