powered by
Function to define the x variable as categorical
defineCategoricalAxis(myIO, xAxis = TRUE, yAxis = FALSE)
A modified myIO htmlwidget object with categorical axis configured.
myIO
an htmlwidget object created by the myIO() function
a logical argument (TRUE) for defining the x axis as categorical
a logical argument (TRUE) for defining the y axis as categorical
# Define x axis as categorical myIO() |> defineCategoricalAxis(xAxis = TRUE) # Define both axes as categorical myIO() |> defineCategoricalAxis(xAxis = TRUE, yAxis = TRUE)
Run the code above in your browser using DataLab