Calculates axes limits depending on data values that have to be plotted, extra plot elements that have to be shown and margins.
mdaplot.getAxesLim(x.values, y.values, lower = NULL, upper = NULL,
show.colorbar = F, show.lines = F, legend = NULL, show.legend = F,
legend.position = "topright", show.labels = F)
a vector with x values.
a vector or a matrix with y values.
a lower margin for y limits.
an upper margin for y limits.
logical, show or not the colorbar on the plot.
logical or numeric with line coordinates to be shown on the plot.
vector with legend items.
logical, show or not legend on the plot.
position of the legend (see mdaplotg
for details).
logical, show or not labels for the data objects
Returns a list with four limits for the x and y axes.
Data can be a list with several matrices or just one matrix. The matrices can have single.x configuration, where first column is x values and the others are y values or normal configuration, where every odd column is x values and every even is corresponding y values.