inst/examples/shiny/linked_scale/ui.R

library(ggiraph)

shinyUI(fluidPage(
  tags$h1("ggiraph key selection demo"),

  fluidRow(
    column(width = 7,
           h4("Click a legend key or a point to select: "),
           girafeOutput("plot")
    ),
    column(width = 5,
           h4("Selection summary"),
           tableOutput("datatab")
    )
    )
  )
)

Try the ggiraph package in your browser

Any scripts or data that you put into this service are public.

ggiraph documentation built on Feb. 17, 2026, 9:07 a.m.