Function to plot interval variables by rectangles. The bounds of the rectangles are given by the lower and upper bounds of the interval variables. To avoid precise observations to have a line-width of 0, small values are added to the upper and lower bounds what guarantees the rectangles (or lines or points) to be easily visible in the plot.
# S3 method for interval
plot(x = NULL, y = NULL, data = NULL,
  col = "black", xlab = NULL, ylab = NULL, xlim = NULL,
  ylim = NULL, sort = NULL, ...)In its most save way, x is an object from class interval
and jointly used with a second interval object y. If no y is given,
the values of x are just plotted in order of appearance
(cf. plot(iris$Sepal.Length)).
x can also be a formula with two variables found in data.
If used jointly with x, it has to be a numeric vector or an interval object.
If x is a fomula, it has to be a data.frame or matrix with column names
fitting to the two variables named in the formula.
The color of the rectangles.
A title for the x axis: see title.
A title for the y axis: see title.
Numeric vectors of length 2, giving the x coordinate ranges.
Numeric vectors of length 2, giving the y coordinate ranges.
A character specifying how the values should be sorted if only one variable is to be plotted.
By default they are sorted according to their position in the data set.
sort = "lowerbound_increasing" sorts the data primarily by their lower bound, and secondarily
(this means for equal lower bounds) by their upper bounds. Both in increasing order.
For sort = "lowerbound_decreasing", both happens in decreasing order.
sort = "mostprecise_increasing" sorts the data by their length of the interval they represent,
and within equal lengths by the lower bound. Both in increasing order.
For sort = "mostprecise_decreasing", both happens in decreasing order.
graphical parameters such as main.