Level 7
Level 8

Graphics


27 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
pdf(Filename)
new pdf graphics device with target Filename
png(Filename)
new png graphics device with target Filename
dev.off()
shuts down the current device
plot(V1, V2)
draw a scatter plot with coordinates V1 and V2
barplot(V)
creates a bar plot of values V
boxplot(V)
produce box-and-whisker plot of V values
hist(V)
computes and plot an histogram of V values
pairs(Df)
scatterplots of all pairs of columns in Df
coplot(V1 ~ V2 | V3)
conditional plot of V1 and V2 by V3
qqnorm(V)
produces a normal QQ plot of the values in V
contour(M)
create a contour plot (for 3D data) of matrix M
persp(M)
draws perspective plot (for 3D data) of matrix M
points(V1, V2)
draw a sequence of points at V1, V2
lines(V1, V2)
draw lines joining points at V1 and V2 with line segments
text(V1, V2, V3)
draws the strings given in the vector V3 at the coordinates given by V1 and V2
polygon(V1, V2)
draws the polygons whose vertices are given in V1 and V2
abline(h=1)
adds one or more straight lines through the current plot (e.g. an horizontal one at y=1)
axis(3)
adds an axis to the current plot (e.g. an axis above the plot)
layout(M)
multiple plotting regions per page as described in matrix M
par()
view/set graphics parameters
pch=3
argument to specify symbol to be used in a plot (e.g. a plus)
type="b"
argument to specify the type of plot (e.g. "b"oth lines and points)
col="red"
argument to specify color to be used in a plot (e.g. "red")
lwd=2
argument to specify line width to be used in a plot (e.g. 2)
main="hello"
argument to specify an overall title for the plot (e.g. "hello")
legend("topright", c("A", "B"))
add legend to plot (e.g. at "topright" position, labels "A", "B")
palette()
view (or manipulate) the color palette which is used when a col= has a numeric index