Skip to contents

Set Layer Opacity

Usage

setLayerOpacity(myIO, label, opacity)

Arguments

myIO

an htmlwidget object created by the myIO() function

label

character. The layer label to target.

opacity

numeric. Opacity value between 0 (transparent) and 1 (opaque).

Value

A modified myIO htmlwidget object.

Examples

myIO(iris) |>
  addIoLayer("point", label = "pts",
             mapping = list(x_var = "Sepal.Length", y_var = "Sepal.Width")) |>
  setLayerOpacity("pts", 0.5)