Function to flip the x and y axes
Examples
# 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()
Function to flip the x and y axes
# 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()