Skip to contents

Function to make points draggable

Usage

dragPoints(myIO, dragPoints = TRUE)

Arguments

myIO

an htmlwidget object created by the myIO() function

dragPoints

a logical argument (TRUE) for creating draggable points

Value

the same myIO object

Examples

# Enable draggable points
myIO() |>
  addIoLayer(
    type = "point", color = "red", label = "pts",
    data = mtcars, mapping = list(x_var = "wt", y_var = "mpg")
  ) |>
  dragPoints()