Learn R Programming

myIO (version 1.2.0)

flipAxis: Flip Chart Axes

Description

Function to flip the x and y axes

Usage

flipAxis(myIO, flipAxis = TRUE)

Value

A modified myIO htmlwidget object with axes flipped.

Arguments

myIO

an htmlwidget object created by the myIO() function

flipAxis

a logical argument (TRUE) for flipping the x and y axes

Examples

Run this code
# Flip the axes for a horizontal bar chart
myIO() |>
  addIoLayer(
    type = "bar", color = "steelblue", label = "bars",
    data = mtcars, mapping = list(x_var = "wt", y_var = "mpg")
  ) |>
  flipAxis()

Run the code above in your browser using DataLab