Low-level plotting commands Flashcards

1
Q

points(x, y)

A

adds points (the option type= can be used)

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

lines(x, y)

A

id. but with lines

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

text(x, y, labels, …)

A

adds text given by labels at coordi-

nates (x,y); a typical use is: plot(x, y, type=”n”); text(x, y, names)

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

mtext(text, side=3, line=0, …)

A

adds text given by text in the margin specified by side (see axis() below); line specifies the line from the plotting area

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

segments(x0, y0, x1, y1)

A

draws lines from points (x0,y0) to points (x1,y1)

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

arrows(x0, y0, x1, y1, angle= 30, code=2)

A

id. with arrows at points (x0,y0) if code=2, at points (x1,y1) if code=1, or both if code=3; angle controls the angle from the shaft of the arrow to the edge of the arrow head

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

abline(a,b)

A

draws a line of slope b and intercept a

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

abline(h=y)

A

draws a horizontal line at ordinate y

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

abline(v=x)

A

draws a vertical line at abcissa x

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

abline(lm.obj)

A

draws the regression line given by lm.obj

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

rect(x1, y1, x2, y2)

A

draws a rectangle which left, right, bottom, and

top limits are x1, x2, y1, and y2, respectively

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

polygon(x, y)

A

draws a polygon linking the points with coordinates given

by x and y

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

legend(x, y, legend)

A

adds the legend at the point (x,y) with the sym-

bols given by legend

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

title()

A

adds a title and optionally a sub-title

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

axis(side, vect)

A

adds an axis at the bottom (side=1), on the left (2),
at the top (3), or on the right (4); vect (optional) gives the abcissa (or
ordinates) where tick-marks are drawn

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

rug(x)

A

draws the data x on the x-axis as small vertical lines

17
Q

locator(n, type=”n”, …)

A

returns the coordinates (x,y) after the
user has clicked n times on the plot with the mouse; also draws sym- bols (type=”p”) or lines (type=”l”) with respect to optional graphic parameters (…); by default nothing is drawn (type=”n”)