mdaplot.getXAxisLim: Calculate limits for x-axis.

View source: R/mdaplot.R

mdaplot.getXAxisLimR Documentation

Calculate limits for x-axis.

Description

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

Usage

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)

Value

Returns a vector with two limits.


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.