rangeHeading | R Documentation |
Use a call to one of these functions as the heading
parameter of
overlayServer()
to provide a heading on the overlay dropdown menu
reporting the start and end position of the overlay. For numbers, the
heading from rangeHeading()
will be e.g. "1.5 - 3.5". For dates, the
heading from dateHeading()
will be e.g. "2025-05-01 - 2025-06-01".
rangeHeading(..., sep = " - ")
dateHeading(format, ..., sep = " - ")
... |
Further arguments to be passed to |
sep |
A separator that will be inserted between the start and end
position of the overlay. Use |
format |
For |
A heading function suitable to pass to overlayServer()
as the
heading
argument.
overlayServer()
, for a complete example.
server <- function(input, output) {
ov <- overlayServer("my_plot", 8, heading = dateHeading("%b %d"))
# further server code here . . .
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.