plot.interval: Plotting interval variables

Description Usage Arguments

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'interval'
plot(
  x = NULL,
  y = NULL,
  data = NULL,
  col = "black",
  xlab = NULL,
  ylab = NULL,
  xlim = NULL,
  ylim = NULL,
  sort = NULL,
  ...
)

Arguments

x

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.

y

If used jointly with x, it has to be a numeric vector or an interval object.

data

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.

col

The color of the rectangles.

xlab

A title for the x axis: see title.

ylab

A title for the y axis: see title.

xlim

Numeric vectors of length 2, giving the x coordinate ranges.

ylim

Numeric vectors of length 2, giving the y coordinate ranges.

sort

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.


hmi documentation built on Oct. 23, 2020, 7:31 p.m.