Description Usage Arguments Use
Render a ggplot2 graphic with vega.
1 2 |
plot |
ggplot2 graphic |
base_path |
path in which to save all visualisation files. Must already exist. |
name |
name of visualisation. Used to name html and js spec files |
... |
other arguments passed on to
|
debug |
if |
This function creates all the files necesary to render a
vega visualisation: but currently you're responsible for
running a server to send them to the browser. You can't
run directly from disk (with a file://
) url,
because browser security settings make it impossible to
load data from relative urls.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.