Skip to contents

Sets margins for the top, bottom, left, and right sides of the chart

Usage

setAxisLimits(
  myIO,
  xlim = list(min = NULL, max = NULL),
  ylim = list(min = NULL, max = NULL)
)

Arguments

myIO

an htmlwidget object created by the myIO() function

xlim

a list of min and max values

ylim

a list of min and max values

Value

the same myIO object

Examples

# Set x axis limits
myIO() |> setAxisLimits(xlim = list(min = 0, max = 100))
# Set both axis limits myIO() |> setAxisLimits( xlim = list(min = 0, max = 50), ylim = list(min = -10, max = 200) )