ldahist.html

来自「本程序是基于linux系统下c++代码」· HTML 代码 · 共 123 行

HTML
123
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Histograms or Density Plots of Multiple Groups</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>

<table width="100%" summary="page for ldahist {MASS}"><tr><td>ldahist {MASS}</td><td align="right">R Documentation</td></tr></table>
<h2>Histograms or Density Plots of Multiple Groups</h2>


<h3>Description</h3>

<p>
Plot histograms or density plots of data on a single Fisher linear
discriminant.
</p>


<h3>Usage</h3>

<pre>
ldahist(data, g, nbins = 25, h, x0 = - h/1000, breaks,
        xlim = range(breaks), ymax = 0, width,
        type = c("histogram", "density", "both"),
        sep = (type != "density"),
        col = 5, xlab = deparse(substitute(data)), bty = "n", ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>data</code></td>
<td>
vector of data. Missing values (<code>NA</code>s) are allowed and omitted.
</td></tr>
<tr valign="top"><td><code>g</code></td>
<td>
factor or vector giving groups, of the same length as <code>data</code>.
</td></tr>
<tr valign="top"><td><code>nbins</code></td>
<td>
Suggested number of bins to cover the whole range of the data.
</td></tr>
<tr valign="top"><td><code>h</code></td>
<td>
The bin width (takes precedence over <code>nbins</code>).
</td></tr>
<tr valign="top"><td><code>x0</code></td>
<td>
Shift for the bins - the breaks are at <code>x0 + h * (..., -1, 0, 1, ...)</code>
</td></tr>
<tr valign="top"><td><code>breaks</code></td>
<td>
The set of breakpoints to be used. (Usually omitted, takes precedence
over <code>h</code> and <code>nbins</code>).
</td></tr>
<tr valign="top"><td><code>xlim</code></td>
<td>
The limits for the x-axis.
</td></tr>
<tr valign="top"><td><code>ymax</code></td>
<td>
The upper limit for the y-axis.
</td></tr>
<tr valign="top"><td><code>width</code></td>
<td>
Bandwidth for density estimates. If missing, the Sheather-Jones
selector is used for each group separately.
</td></tr>
<tr valign="top"><td><code>type</code></td>
<td>
Type of plot.
</td></tr>
<tr valign="top"><td><code>sep</code></td>
<td>
Whether there is a separate plot for each group, or one combined plot.
</td></tr>
<tr valign="top"><td><code>col</code></td>
<td>
The colour number for the bar fill.
</td></tr>
<tr valign="top"><td><code>xlab</code></td>
<td>
label for the plot x-axis. By default, this will be the name of <code>data</code>.
</td></tr>
<tr valign="top"><td><code>bty</code></td>
<td>
The box type for the plot - defaults to none.
</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
additional arguments to <code>polygon</code>.
</td></tr>
</table>

<h3>Side Effects</h3>

<p>
Histogram and/or density plots are plotted on the current device.
</p>


<h3>References</h3>

<p>
Venables, W. N. and Ripley, B. D. (2002)
<EM>Modern Applied Statistics with S.</EM> Fourth edition.  Springer.
</p>


<h3>See Also</h3>

<p>
<code><a href="plot.lda.html">plot.lda</a></code>.
</p>



<hr><div align="center">[Package <em>MASS</em> version 7.2-44 <a href="00Index.html">Index]</a></div>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?