• a vector giving the breakpoints between histogram cells,
+ * a vector giving the breakpoints between histogram cells,
- • a function to compute the vector of breakpoints,
+ * a function to compute the vector of breakpoints,
- • a single number giving the number of cells for the
+ * a single number giving the number of cells for the
histogram,
- • a character string naming an algorithm to compute the
+ * a character string naming an algorithm to compute the
number of cells (see 'Details'),
- • a function to compute the number of cells.
+ * a function to compute the number of cells.
In the last three cases the number is a suggestion only; as
the breakpoints will be set to 'pretty' values, the number is
@@ -1351,13 +1356,13 @@ hist()
Help File
TRUE').
Details:
The definition of _histogram_ differs by source (with
- country-specific biases). R's default with equi-spaced breaks
+ country-specific biases). R's default with equispaced breaks
(also the default) is to plot the counts in the cells defined by
'breaks'. Thus the height of a rectangle is proportional to the
number of points falling into the cell, as is the area _provided_
the breaks are equally-spaced.
- The default with non-equi-spaced breaks is to give a plot of area
+ The default with non-equispaced breaks is to give a plot of area
one, in which the _area_ of the rectangles is the fraction of the
data points falling in the cells.
@@ -1513,30 +1518,30 @@ plot()
Help File
y: the y coordinates of points in the plot, _optional_ if 'x' is
an appropriate structure.
- ...: Arguments to be passed to methods, such as graphical
+ ...: arguments to be passed to methods, such as graphical
parameters (see 'par'). Many methods will accept the
following arguments:
'type' what type of plot should be drawn. Possible types are
- • '"p"' for *p*oints,
+ * '"p"' for *p*oints,
- • '"l"' for *l*ines,
+ * '"l"' for *l*ines,
- • '"b"' for *b*oth,
+ * '"b"' for *b*oth,
- • '"c"' for the lines part alone of '"b"',
+ * '"c"' for the lines part alone of '"b"',
- • '"o"' for both '*o*verplotted',
+ * '"o"' for both '*o*verplotted',
- • '"h"' for '*h*istogram' like (or 'high-density')
+ * '"h"' for '*h*istogram' like (or 'high-density')
vertical lines,
- • '"s"' for stair *s*teps,
+ * '"s"' for stair *s*teps,
- • '"S"' for other *s*teps, see 'Details' below,
+ * '"S"' for other *s*teps, see 'Details' below,
- • '"n"' for no plotting.
+ * '"n"' for no plotting.
All other 'type's give a warning or an error; using,
e.g., 'type = "punkte"' being equivalent to 'type = "p"'
@@ -1709,7 +1714,7 @@ boxplot()
Help File
range: this determines how far the plot whiskers extend out from the box. If ‘range’ is positive, the whiskers extend to the most extreme data point which is no more than ‘range’ times the interquartile range from the box. A value of zero causes the whiskers to extend to the data extremes.
width: a vector giving the relative widths of the boxes making up the plot.
varwidth: if ‘varwidth’ is ‘TRUE’, the boxes are drawn with widths proportional to the square-roots of the number of observations in the groups.
-notch: if ‘notch’ is ‘TRUE’, a notch is drawn in each side of the boxes. If the notches of two plots do not overlap this is ‘strong evidence’ that the two medians differ (Chambers et al, 1983, p. 62). See ‘boxplot.stats’ for the calculations used.
+notch: if ‘notch’ is ‘TRUE’, a notch is drawn in each side of the boxes. If the notches of two plots do not overlap this is ‘strong evidence’ that the two medians differ (Chambers et al., 1983, p. 62). See ‘boxplot.stats’ for the calculations used.
outline: if ‘outline’ is not true, the outliers are not drawn (as points whereas S+ uses lines).
names: group labels which will be printed under each boxplot. Can be a character vector or an expression (see plotmath).
boxwex: a scale factor to be applied to all boxes. When there are only a few groups, the appearance of the plot can be improved by making the boxes narrower.
@@ -1904,7 +1909,7 @@ barplot()
Help File
gamma-corrected grey palette if 'height' is a matrix; see
'grey.colors'.
border: the color to be used for the border of the bars. Use ‘border = NA’ to omit borders. If there are shading lines, ‘border = TRUE’ means use the same colour for the border as for the shading lines.
-main,sub: main title and subtitle for the plot.
+main, sub: main title and subtitle for the plot.
xlab: a label for the x axis.
ylab: a label for the y axis.
@@ -2029,7 +2034,6 @@ barplot()
Help File
# Border color
barplot(VADeaths, border = "dark blue")
-
# Log scales (not much sense here)
barplot(tN, col = heat.colors(12), log = "y")
barplot(tN, col = gray.colors(20), log = "xy")
@@ -2512,6 +2516,46 @@ barplot()
example
barplot()
example