Generate URLs to the plot viewer or to plot SVGs.
This function will only work after starting a device with hgd().
Usage
hgd_url(
endpoint = "live",
which = dev.cur(),
websockets = TRUE,
width = -1,
height = -1,
history = TRUE
)
Arguments
endpoint
API endpoint. The default, "live" is the HTML/JS
plot viewer. Can be set to a numeric plot index or plot ID
(see hgd_id()) to obtain the direct URL to the SVG.
which
Which device (ID).
websockets
Use websockets.
width
Width of the plot. (Only used when endpoint is "svg",
or a plot index or ID.)
height
Height of the plot. (Only used when endpoint is "svg",
or a plot index or ID.)