obsplot | R Documentation |
Create a new obsplot
obsplot(
data = NULL,
width = "auto",
height = "auto",
menu = getOption("obsplot_menu"),
elementId = NULL,
...
)
data |
optional data.frame as primary data source |
width |
plot width. Use NULL to let Plot decide, or "auto" to let htmlwidgets decide |
height |
plot height. Use NULL to let Plot decide, or "auto" to let htmlwidgets decide |
menu |
if TRUE, display a gear menu aside the plot with additional features. Can be set globally with |
elementId |
optional custom element id, passed to createWidget() |
... |
named options passed to Observable Plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.