ghist | R Documentation |
The generic function ghist
computes a histogram of the given
data values. If plot = TRUE
, the resulting object of
class
"histogram
" is plotted by gplot.histogram
before it is returned.
ghist(x, ...)
## Default S3 method:
ghist(
x,
breaks = "Sturges",
freq = NULL,
probability = !freq,
include.lowest = TRUE,
right = TRUE,
density = NULL,
angle = 45,
col = "white",
border = NULL,
main = paste("Histogram of", xname),
xlim = range(breaks),
ylim = NULL,
xlab = xname,
ylab,
axes = TRUE,
plot = TRUE,
labels = FALSE,
nclass = NULL,
warn.unused = TRUE,
grid = TRUE,
col.grid = "grey90",
col.acc = "white",
...
)
x |
a vector of values for which the histogram is desired. |
... |
further arguments and graphical parameters passed to
|
breaks |
one of:
In the last three cases the number is a suggestion only; as the
breakpoints will be set to |
freq |
logical; if |
probability |
an alias for |
include.lowest |
logical; if |
right |
logical; if |
density |
the density of shading lines, in lines per inch.
The default value of |
angle |
the slope of shading lines, given as an angle in degrees (counter-clockwise). |
col |
a colour to be used to fill the bars.
The default used to be |
border |
the color of the border around the bars. The default is to use the standard foreground color. |
main, xlab, ylab |
main title and axis labels: these arguments to
|
xlim, ylim |
the range of x and y values with sensible defaults.
Note that |
axes |
logical. If |
plot |
logical. If |
labels |
logical or character string. Additionally draw labels on top
of bars, if not |
nclass |
numeric (integer). For S(-PLUS) compatibility only,
|
warn.unused |
logical. If |
grid |
logical; if |
col.grid |
|
col.acc |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.