mdaplot.getXAxisLim function

Calculate limits for x-axis.

Calculate limits for x-axis.

Calculates limits for x-axis depending on data values that have to be plotted, extra plot elements that have to be shown and margins.

mdaplot.getXAxisLim( ps, xlim, show.labels = FALSE, show.lines = FALSE, show.excluded = FALSE, bwd = 0.8 )

Arguments

  • ps: plotseries object.
  • xlim: limits provided by user
  • show.labels: logical, will data labels be shown on the plot
  • show.lines: logical or numeric with line coordinates to be shown on the plot.
  • show.excluded: logical, will excluded values be shown on the plot
  • bwd: if limits are computed for bar plot, this is a bar width (otherwise NULL)

Returns

Returns a vector with two limits.

  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19