| ugd_render_inline | R Documentation | 
Convenience function for quick inline plot rendering.
This is similar to ugd_render() but the plotting code
is specified inline and an unigd graphics device is managed
(created and closed) automatically. Starting a device with ugd() is
therefore not necessary.
ugd_render_inline(
  code,
  page = 0,
  width = getOption("unigd.width", 720),
  height = getOption("unigd.height", 576),
  zoom = 1,
  as = "svg",
  ...
)
| code | Plotting code. See examples for more information. | 
| page | Plot page to render. If this is set to  | 
| width | Width of the plot. | 
| height | Height of the plot. | 
| zoom | Zoom level. (For example:  | 
| as | Renderer. | 
| ... | Additional parameters passed to  | 
Rendered plot. Text renderers return strings, binary renderers return byte arrays.
ugd_render_inline({
  hist(rnorm(100))
}, as = "svgz")
s <- ugd_render_inline({
  plot.new()
  lines(c(0.5, 1, 0.5), c(0.5, 1, 1))
})
cat(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.