Skip to contents

Function to define the x variable as categorical

Usage

defineCategoricalAxis(myIO, xAxis = TRUE, yAxis = FALSE)

Arguments

myIO

an htmlwidget object created by the myIO() function

xAxis

a logical argument (TRUE) for defining the x axis as categrocial

yAxis

a logical argument (TRUE) for defining the y axis as categrocial

Value

the same myIO object

Examples

# Define x axis as categorical
myIO() |> defineCategoricalAxis(xAxis = TRUE)
# Define both axes as categorical myIO() |> defineCategoricalAxis(xAxis = TRUE, yAxis = TRUE)