找回密码
 注册
查看: 586|回复: 0

R语言 mcaGUI包 mcaGUI()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 00:34:26 | 显示全部楼层 |阅读模式
mcaGUI(mcaGUI)
mcaGUI()所属R语言包:mcaGUI

                                        A function to start the ibest GUI
                                         开始ibest GUI函数

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The mcaGUI is a simple GUI for R using RGtk2 as the graphical toolkit. The GUI is written using the gWidgets interface to a toolkit.
的mcaGUI是一个简单的GUI图形工具包RGtk2为R。 GUI是用gWidgets界面的工具包。


用法----------Usage----------


mcaGUI(cliType="console",  width=850, height=.75*width,guiToolkit="RGtk2")

pmg.add(widget,label)

pmg.gw(lst, label=NULL)

pmg.addMenubar(menulist)

pmg.eval(command, assignto=NULL)



参数----------Arguments----------

参数:cliType
Where to send output of function called within ibestGUI function? This can be either "console" to put output into console that called ibestGUI, or "GUI" to put output into a widget.
发送到哪里ibestGUI函数内调用的函数输出吗?这可能是要么“控制台”投入控制台输出调用ibestGUI,或“GUI”的一个部件放入输出。


参数:width
Width in pixels of initial window
在初始窗口的像素宽度


参数:height
height in pixels of initial window
初始窗口的像素高度


参数:guiToolkit
Specify toolkit to use with gWidgets
指定工具包的使用与gWidgets


参数:widget
A gWidgets widget to add to the main notebook for holding dialogs
一个gWidgets部件添加到举行对话的主要笔记本


参数:label
A string containing a label to put on the tab when adding a widget to the main notebook for holding dialogs
一个字符串,包含一个标签,在标签上把举行对话时加入一个部件的主要笔记本


参数:lst
A value passed to ggenericwidget. Can be a list, a function name or a function
一个值传递到ggenericwidget。可以是一个列表,一个函数名或函数


参数:menulist
A list passed to gmenu for adding to the menubar
添加到菜单栏的列表传递到gmenu


参数:command
A string containing a command to be parsed and evaluated in the global environement
一个字符串,包含一个命令被解析并在全球environement评估


参数:assignto
If non-NULL, a variable name to assign the output generated from evaluating the command
如果非NULL,变量名分配从评估的命令产生的输出


Details

详情----------Details----------

The user can add to the menubar at start up time by defining a list that is called by gmenu. IBESTgui look for a variable pmg.user.menu. This is a list with named components. Each name becomes the menubar entry top level, and each component is called by gmenu to populate the menubar entry.
用户可以添加到菜单栏,在启动时间定义一个称为gmenu名单。 IBESTgui寻找一个变量pmg.user.menu。这是一个名为组件的列表。每个名字变成菜单栏项目的顶尖水平,并调用每个组件是由gmenu来填充菜单栏项。

The functions pmg.add, pmg.gw, pmg.addMenubar, and pmg.eval are used to extend the GUI.
职能pmg.add,pmg.gw,pmg.addMenubar,pmg.eval用于扩展的GUI。




pmg.add This is used to add a widget to the main
pmg.add这是用来添加一个部件的主要




pmg.gw This is used to add a ggenericwidget instance to the main notebook containing the dialogs. These widgets can be generated from a function name using the values from
pmg.gw这是用来添加ggenericwidget实例包含对话框的主要笔记本电脑。这些部件可以使用值从函数名称产生




pmg.addMenubar Used to add  top-level entries to the
pmg.addMenubar用于添加顶级条目




pmg.eval Used to send a command, as a string, to the Commands area to be evaluated. Evaluation is done in the
pmg.eval用于发送一个命令,作为一个字符串,命令区进行评估。在完成评估


作者(S)----------Author(s)----------


Origian function John Verzani with modifications by Wade K. Copeland



举例----------Examples----------


## Not run: [#无法运行:]
## this restarts the GUI if the main window has been closed[#这个重新启动,如果主窗口已关闭的GUI]
mcaGUI()

## End(Not run)[#结束(不运行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-4 01:05 , Processed in 0.032802 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表