powered by
Function to make points draggable
dragPoints(myIO, dragPoints = TRUE)
A modified myIO htmlwidget object with drag interaction enabled.
myIO
an htmlwidget object created by the myIO() function
a logical argument (TRUE) for creating draggable points
# Enable draggable points myIO() |> addIoLayer( type = "point", color = "red", label = "pts", data = mtcars, mapping = list(x_var = "wt", y_var = "mpg") ) |> dragPoints()
Run the code above in your browser using DataLab