| tippy_plot | R Documentation | 
Use a plot as tooltip
tippy_plot(
  selector,
  plotId,
  ...,
  .width = 200,
  .height = 200,
  .hidePlot = FALSE,
  .session = shiny::getDefaultReactiveDomain()
)
| selector | A CSS selector, e.g.: '#id' or '.class'. If it is a bare selector (e.g.: 'sth') then it is assumed to be an id and processed as '#sth'. Set '.is_tag' to 'TRUE' to disable that. | 
| plotId | Id of plot to use. | 
| ... | Any other options from the official documentation. | 
| .width, .height | Dimensions of plot. | 
| .hidePlot | Whether to hide the original plot. | 
| .session | A valid shiny session. | 
library(shiny)
ui <- fluidPage(
  useTippy(),
  plotOutput("plot"),
  h5("plot tooltip", id = "plotTip")
)
server <- function(input, output) {
  output$plot <- renderPlot({
    on.exit({
      tippy_plot(
        "plotTip", 
        "plot", 
        theme = "light",
        .hidePlot = TRUE,
				 .width = 600,
				 .height = 200,
        maxWidth = 700
      )
    })
    plot(cars)
  })
}
if(FALSE){
  shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.