List of Helpful R Functions
List of Helpful R Functions
doc
which does logical comparison and indicates which elements are TRUE
that is, gives the TRUE indices of a logical object
any does logical comparison returns 1 (TRUE) if any of the comparisons are TRUE
that is, Given a set of logical vectors, is at least one of the values true?
1 IntroR
408067530.doc
hist histogram
boxplot box plot
plot scatterplot
lines connects points sequentially with lines (added to a plot)
segments add lines to a plot (between pairs of points)
text add text to a plot
legend add a legend to a plot
abline add a line to a plot by specifying its slope and intercept; passing an lm object will
result in adding the predicted line to the plot
x11 open another graphics window
pdf open a pdf file for recording graphics
dev.off close graphics device
par(mfrow) arranges multiple plots on same page
2 IntroR
408067530.doc
3 IntroR