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 categorical

yAxis

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

Value

A modified myIO htmlwidget object with categorical axis configured.

Examples

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