Display graphics



next up previous contents
Next: Arguments to high-level Up: High-level plotting commands Previous: Displaying multivariate data

Display graphics

Other high-level graphics functions produce different types of plots. Some examples are:


tsplot(x1,x2,...)

Plots any number of time series on the same scale. This automatic simultaneous scaling feature is also useful when the x's are ordinary numeric vectors, in which case they are plotted against the numbers 1,2,3,....


qqnorm(x)
qqplot(x,y)

Distribution-comparison plots. The first form plots the numeric vector x against the expected Normal order scores (a normal scores plot.) The second form plots the quantiles of x against those of y to compare their respective distributions.


hist(x)
hist(x,nclass= n )
hist(x,breaks=...)

Produces a histogram of the numeric vector x. A sensible number of classes is usually chosen, but a recommendation can be given with the nclass= argument. Alternatively, the breakpoints can be specified exactly with the breaks= argument. If the probability=T argument is given, the bars represent relative frequencies instead of counts.


dotchart(x,...)

Construct a dotchart of the data in x. In a dotchart the x-axis gives a labelling of the data in x and the y-axis gives its value. For example it allows easy visual selection of all data entries with values lying in specified ranges.


pie(slices, names, explode=...)

Make a pie diagram, including the possibility of some pieces displaced or ``exploded'' out from the centre. (Pie diagrams are especially good for showing to administrators and bosses, but not much else, in my opinion.)




Erik Moledor
Tue Jan 31 21:02:18 EST 1995