as_svg | R Documentation |
This is mainly useful within a github README.md
since github will
not rendered html-styled text in colour, but will render it correctly
if it is within a <svg>
tags.
as_svg(
x,
width = 1200,
height = 900,
...,
font_size = NULL,
style = list(),
browsable = FALSE
)
x |
emphatic object |
width , height |
viewBox dimensions for SVG |
... |
other arguments passed to |
font_size |
CSS font-size. Default: NULL means to not adjust font size.
Otherwise, use valid CSS |
style |
html tag styling to apply to the |
browsable |
Should the SVG be rendered to the RStudio Viewer pane when when printed (instead of console output)? Default: FALSE |
This is just a the results of as_html()
wrapped in <svg>
tags
Character string containing SVG representation
hl_diff('hello', 'there') |>
as_svg() |>
cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.