Novel solutions using sortable in shiny apps"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(sortable)

Creating an app

This example demonstrates how to use custom sortable widgets with any shiny object.

library(htmltools)
tags$div(
  class = "shiny-app-frame",
  tags$iframe(
    src = "https://andrie-de-vries.shinyapps.io/sortable_drag_vars_to_plot_app/",
    width = 800,
    height = 700
  )
)

Source code

knitr::read_chunk(
  system.file("shiny-examples/drag_vars_to_plot/app.R", package = "sortable")
)



Try the sortable package in your browser

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

sortable documentation built on March 31, 2023, 9:35 p.m.