embedCrunchBox | R Documentation |
crunchBox()
returns a URL to the box data that it generates, but
in order to view it in a CrunchBox or to embed it on a website, you'll need
to translate that to the Box's public URL and wrap it in some HTML. This function
takes a CrunchBox and returns the HTML which you can embed in a website.
embedCrunchBox(box, title = NULL, logo = NULL, ...)
box |
character URL of the box data, as returned by |
title |
character title for the Box, to appear above the iframe. Default
is |
logo |
character URL of a logo to show instead of a title. Default is
|
... |
Additional arguments, not currently used. |
Prints the HTML markup to the screen and also returns it invisibly.
crunchBox()
## Not run:
box <- crunchBox(ds)
embedCrunchBox(box, logo = "//myco.example/img/logo_200px.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.