inst/examples/shiny/crimes/ui.R

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

  fluidRow(
    column(width = 7,
           h4("Select states: "),
           actionButton("reset", label = "Reset selection"),
           ggiraph::girafeOutput("plot")
    ),
    column(width = 5,
           h4("Hovering states"),
           verbatimTextOutput("console"),
           h4("Selected states"),
           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 March 31, 2023, 9:53 p.m.