comparison.plot(SamplerCompare)
comparison.plot()所属R语言包:SamplerCompare
Plot the results of compare.samplers
绘制结果compare.samplers的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates a plot of representing results from
产生的图象表示结果
用法----------Usage----------
comparison.plot(RS, xlab=NULL, ylab=NULL, base_size=10, ...)
参数----------Arguments----------
参数:RS
A data frame in the form returned by compare.samplers and simulation.result.
一个数据框的形式返回compare.samplers和simulation.result。
参数:xlab, ylab, ...
Options to be passed to ggplot2::qplot.
选项将被传递给ggplot2::qplot。
参数:base_size
The text base size passed to ggplot2::theme_bw.
文本库的大小传递给ggplot2::theme_bw。
Details
详细信息----------Details----------
This function generates a grid of subplots, where each column of plots represents a sampler and each row represents a distribution. The horizontal axis in each subplot represents the tuning parameter passed as tuning to compare.samplers, and the vertical axis represents the product RS$evals * RS$act, the number of log density evaluations per independent sample required for that distribution when simulated by that sampler with that tuning parameter. 95% confidence intervals, covering the range [RS$evals * RS$act.025, RS$evals * RS$act.975], are represented by vertical bars. If RS$evals or RS$act is missing or infinite, a question mark is plotted instead of the default plot character.
此功能的次要图,图中的每一列代表一个采样生成一个网格,每一行代表一个分布。每一个次要图的水平轴表示的优化参数,通过为tuning到compare.samplers,纵轴代表产品RS$evals * RS$act,需要评估每一个独立的样本数的记录密度,分布在模拟时,采样器,调谐参数。 95%的置信区间,覆盖的范围内[RS$evals * RS$act.025, RS$evals * RS$act.975],竖线表示。如果RS$evals或RS$act丢失或无限时,一个问号绘制,而不是默认的图字符。
comparison.plot returns a ggplot2 plot object. If it is called non-interactively, one must call print on the returned object for a plot to be displayed. To superimpose other figures of merit on the plot, one can add geom_* objects to the returned plot object before calling print.
comparison.plot返回一个ggplot2图对象。如果它被称为非交互方式,必须调用“print的图被显示在返回的对象。要在图上叠加其他数据的优点,一个人可以添加geom_*对象到返回的图对象,然后再调用print。
For more discussion of this type of plot, see Thompson (2010).
这种类型的图的更多讨论,请参见汤普森(2010年)。
值----------Value----------
A ggplot2 plot object.
Aggplot2图的对象。
注意----------Note----------
This is the only function in SamplerCompare that uses the ggplot2 package, so it is loaded explicitly by comparison.plot instead of being listed as a package dependency. This way, compute servers calling compare.samplers do not need to have ggplot2 installed on them.
这是唯一的功能在SamplerCompare,使用ggplot2包,所以它明确地装入comparison.plot,而不是被列为一个软件包的依赖关系。通过这种方式,计算服务器调用compare.samplers不需要有ggplot2安装在其上。
参考文献----------References----------
University of Toronto Dept. of Statistics technical report no. 1010.
Journal of Statistical Software 43(12):1-10.
参见----------See Also----------
compare.samplers, simulation.result, ggplot2::qplot, “Introduction to SamplerCompare” (vignette)
compare.samplers,simulation.result,ggplot2::qplot,的“介绍SamplerCompare”(小插曲)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|