mdaplot.getYAxisLim: Calculate limits for y-axis.

View source: R/mdaplot.R

mdaplot.getYAxisLimR Documentation

Calculate limits for y-axis.

Description

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

Usage

mdaplot.getYAxisLim(
  ps,
  ylim,
  show.lines = FALSE,
  show.excluded = FALSE,
  show.labels = FALSE,
  show.colorbar = FALSE
)

Arguments

ps

'plotseries' object.

ylim

limits provided by user

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

show.labels

logical, will data labels be shown on the plot

show.colorbar

logical, will colorbar be shown on the plot

Value

Returns a vector with two limits.


mdatools documentation built on Aug. 13, 2023, 1:06 a.m.