hgd_url | R Documentation |
Generate URLs to the plot viewer or to plot SVGs.
This function will only work after starting a device with hgd()
.
hgd_url(
endpoint = "live",
which = dev.cur(),
host = NA,
port = NA,
explicit = FALSE,
omit_token = FALSE,
...
)
endpoint |
API endpoint. The default, |
which |
Which device (ID). |
host |
Replaces hostname. |
port |
Replaces port. |
explicit |
Ads |
omit_token |
Should the security token be omitted from the URL. |
... |
Other query parameters that will be appended to the URL. |
Note: If the included client is used set websockets=0
or
sidebar=0
to turn off WebSocket or plot history sidebar.
URL.
## Not run:
hgd()
my_url <- hgd_url()
hgd_url(0)
hgd_url(plot_id(), width = 800, height = 600)
dev.off()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.