output_info | R Documentation |
Adds an output to display information about a hovered-over or selected data point.
output_info(title = NULL, body = NULL, row_style = "table",
default = NULL, dataview = NULL, variable = NULL, subto = NULL,
id = NULL, variable_info = TRUE, floating = FALSE)
title |
Title text, or the source of title text. |
body |
A list of entries in the info body section, which can be raw text or references to features or data variables. |
row_style |
A character specifying how rows should be displayed: |
default |
A list with entries for |
dataview |
The ID of a dataview, used for the persistent display. |
variable |
Name of the variable from which to display variable information and values. If not specified, this will default to the coloring variable of maps and plots, or the y variable of a dataview. |
subto |
A vector of output IDs to receive hover events from. |
id |
Unique id of the element. |
variable_info |
Logical; if |
floating |
Logical; if |
A character vector of the content to be added.
## Not run:
output_info("Initial View", "Hover over plot elements for more information.")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.