Learn R Programming

myIO (version 1.2.0)

setLayerOpacity: Set Layer Opacity

Description

Set Layer Opacity

Usage

setLayerOpacity(myIO, label, opacity)

Value

A modified myIO htmlwidget object.

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).

Examples

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

Run the code above in your browser using DataLab