Plotting Flashcards

1
Q

plot(x)

A

plot of the values of x (on the y-axis) ordered on the x-axis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

plot(x, y)

A

bivariate plot of x (on the x-axis) and y (on the y-axis)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

hist(x)

A

histogram of the frequencies of x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

barplot(x)

A

histogram of the values of x; use horiz=FALSE for horizontal

bars

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dotchart(x)

A

if x is a data frame, plots a Cleveland dot plot (stacked plots
line-by-line and column-by-column)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

pie(x)

A

circular pie-chart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

boxplot(x)

A

“box-and-whiskers” plot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

sunflowerplot(x, y)

A

id. than plot() but the points with similar coor-
dinates are drawn as flowers which petal number represents the num-
ber of points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

stripplot(x)

A

plot of the values of x on a line (an alternative to

boxplot() for small sample sizes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

coplot(x ̃y | z)

A

bivariate plot of x and y for each value or interval of

values of z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

interaction.plot (f1, f2, y)

A

if f1 and f2 are factors, plots the
means of y (on the y-axis) with respect to the values of f1 (on the x-axis) and of f2 (different curves); the option fun allows to choose the summary statistic of y (by default fun=mean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

matplot(x,y)

A

bivariate plot of the first column of x vs. the first one of y, the second one of x vs. the second one of y, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

fourfoldplot(x)

A

visualizes, with quarters of circles, the association be- tween two dichotomous variables for different populations (x must be an array with dim=c(2, 2, k), or a matrix with dim=c(2, 2) if k = 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

assocplot(x)

A

Cohen–Friendly graph showing the deviations from inde- pendence of rows and columns in a two dimensional contingency ta- ble

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

mosaicplot(x)

A

‘mosaic’ graph of the residuals from a log-linear regres- sion of a contingency table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

pairs(x)

A

if x is a matrix or a data frame, draws all possible bivariate plots between the columns of x

17
Q

plot.ts(x)

A

if x is an object of class “ts”, plot of x with respect to time, x may be multivariate but the series must have the same frequency and dates

18
Q

ts.plot(x)

A

id. but if x is multivariate the series may have different dates and must have the same frequency

19
Q

qqnorm(x)

A

quantiles of x with respect to the values expected under a nor- mal law

20
Q

qqplot(x, y)

A

quantiles of y with respect to the quantiles of x

21
Q

contour(x, y, z)

A
contour plot (data are interpolated to draw the curves), x and y must be vectors and z must be a matrix so that
dim(z)=c(length(x), length(y)) (x and y may be omitted)
22
Q

filled.contour(x, y, z)

A

id. but the areas between the contours are

coloured, and a legend of the colours is drawn as well

23
Q

image(x, y, z)

A

id. but with colours (actual data are plotted)

24
Q

persp(x, y, z)

A

id. but in perspective (actual data are plotted)

25
Q

stars(x)

A

if x is a matrix or a data frame, draws a graph with segments or a
star where each row of x is represented by a star and the columns are
the lengths of the segments

26
Q

symbols(x, y, …)

A

draws, at the coordinates given by x and y, sym-
bols (circles, squares, rectangles, stars, thermometres or “boxplots”)
which sizes, colours . . . are specified by supplementary arguments

27
Q

termplot(mod.obj)

A

plot of the (partial) effects of a regression model

mod.obj

28
Q

add=FALSE

A

if TRUE superposes the plot on the previous one (if it exists)

29
Q

axes=TRUE

A

if FALSE does not draw the axes and the box

30
Q

type=”p”

A

specifies the type of plot, “p”: points, “l”: lines, “b”: points
connected by lines, “o”: id. but the lines are over the points, “h”: vertical lines, “s”: steps, the data are represented by the top of the vertical lines, “S”: id. but the data are represented by the bottom of the vertical lines

31
Q

xlim=, ylim=

A

specifies the lower and upper limits of the axes, for exam- ple with xlim=c(1, 10) or xlim=range(x)

32
Q

xlab=, ylab=

A

annotates the axes, must be variables of mode character

33
Q

main=

A

main title, must be a variable of mode character

34
Q

sub=

A

sub-title (written in a smaller font)

35
Q
A