mdaplot.getYAxisLim {mdatools}R 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.


[Package mdatools version 0.14.1 Index]