girafe_css | R Documentation |
It allows specifying individual styles for various SVG elements.
girafe_css(
css,
text = NULL,
point = NULL,
line = NULL,
area = NULL,
image = NULL
)
css |
The generic css style |
text |
Override style for text elements (svg:text) |
point |
Override style for point elements (svg:circle) |
line |
Override style for line elements (svg:line, svg:polyline) |
area |
Override style for area elements (svg:rect, svg:polygon, svg:path) |
image |
Override style for image elements (svg:image) |
css as scalar character
girafe_css_bicolor()
, girafe()
library(ggiraph)
girafe_css(
css = "fill:orange;stroke:gray;",
text = "stroke:none; font-size: larger",
line = "fill:none",
area = "stroke-width:3px",
point = "stroke-width:3px",
image = "outline:2px red"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.