tkdensity(sfsmisc)
tkdensity()所属R语言包:sfsmisc
GUI Density Estimation using Tcl/Tk
使用Tcl / Tk的GUI密度估计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is graphical user interface (GUI) to density, allowing for dynamic bandwidth choice and a simple kind of zooming, relying on library(tcltk).
这是图形用户界面(GUI)density,允许动态带宽选择和一种简单的变焦,依靠library(tcltk)。
用法----------Usage----------
tkdensity(y, n = 1024, log.bw = TRUE, showvalue = TRUE,
xlim = NULL, do.rug = size < 1000, kernels = NULL,
from.f = if (log.bw) -2 else 1/1000,
to.f = if (log.bw) +2.2 else 2,
col = 2)
参数----------Arguments----------
参数:y
numeric; the data the density of which we want.
数字;的密度,我们想要的数据。
参数:n
integer; the number of abscissa values for density evaluation (and plotting).
整数数的横坐标值density评价(绘图)。
参数:log.bw
logical; if true (default), the gui scrollbar is on a log bandwidth scale, otherwise, simple interval.
逻辑,如果为true(缺省值),图形用户界面的滚动条上的log带宽规模,否则,简单的间隔。
参数:showvalue
logical; if true, the value of the current (log) bandwidth is shown on top of the scrollbar.
逻辑,如果情况属实,顶部的滚动条上显示的电流值(对数)的带宽。
参数:xlim
initial xlim for plotting, see plot.default.
初始xlim的图,看到plot.default。
参数:do.rug
logical indicating if rug(y) should be added to each plot. This is too slow for really large sample sizes.
逻辑rug(y)如果应该被添加到每个小区。这是太慢了非常大的样本量。
参数:kernels
character vector of kernel names as allowable for the kernels argument of the standard density function.
字符向量的内核允许的kernels标准density函数的参数的名称。
参数:from.f, to.f
numeric giving the left and right limit of the bandwidth scrollbar.
数值给出的带宽限制,滚动条的左和右。
参数:col
color to be used for the density curve.
要使用的颜色的密度曲线。
Details
详细信息----------Details----------
library(tcltk) must be working, i.e., Tcl/Tk must have been installed on your platform, and must have been visible during R's configuration and/or installation.
“”library(tcltk)必须的工作,即,Tcl / Tk的必须已安装在你的平台上,和R的配置和/或安装过程中必须是可见的。
You can not only choose the bandwidth (the most important parameter), but also the kernel, and you can zoom in and out (in x-range only).
您不仅可以选择的带宽(最重要的参数),但也内核,并且可以放大和缩小(x范围只)。
值----------Value----------
none.<br> (How could this be done? tcltk widgets run as separate processes!)
没有。<BR>(怎么能这样做呢?tcltk部件作为单独的进程运行!)
(作者)----------Author(s)----------
Martin Maechler, building on <code>demo(tkdensity)</code>.
实例----------Examples----------
if (dev.interactive()) ## does really not make sense otherwise[#确确实实,否则没有任何意义]
if(try(require("tcltk"))) { ## sometimes (rarely) there, but broken[有时(很少),但破]
data(faithful)
tkdensity(faithful $ eruptions)
set.seed(7)
if(require("nor1mix"))
tkdensity(rnorMix(1000, MW.nm9), kernels = c("gaussian", "epanechnikov"))
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|