Learn R Programming

myIO (version 1.2.0)

dragPoints: Enable Draggable Points

Description

Function to make points draggable

Usage

dragPoints(myIO, dragPoints = TRUE)

Value

A modified myIO htmlwidget object with drag interaction enabled.

Arguments

myIO

an htmlwidget object created by the myIO() function

dragPoints

a logical argument (TRUE) for creating draggable points

Examples

Run this code
# 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