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

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

[复制链接]
发表于 2012-9-30 12:26:08 | 显示全部楼层 |阅读模式
getParameter(sparkTable)
getParameter()所属R语言包:sparkTable

                                        Functions to interact with a Sparkline object
                                         互动功能的迷你对象

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

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

Basic functions to query parameters for objects of class 'sparkline', 'sparkbar',  'sparkbox', 'sparkTable' or 'geoTable'.
基本功能查询参数的对象类“迷你图”,“sparkbar,sparkbox,sparkTable”或“geoTable的”。


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


        getParameter(object, type)



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

参数:object
objects of class 'sparkline', 'sparkbar', 'sparkbox', 'sparkTable' or 'geoTable'
对象的类“迷你图”,“sparkbar,sparkbox”,“sparkTable”或“geoTable的”


参数:type
one of the following:   
以下操作之一:

'width': query slot 'width' for objects of class 'spark' and classes that directly extend this class.  
宽:查询插槽的宽度“类”星星之火“,并直接继承这个类的类的对象。

'height': query slot 'height' for objects of class 'spark' and classes that directly extend this class.  
“高度”:查询槽“高度”类“星星之火”,并直接继承这个类的类的对象。

'values': query slot 'values' for objects of class 'spark' and classes that directly extend this class.  
“价值”:查询槽“价值”类“星星之火”,并直接继承这个类的类的对象。

'padding': query slot 'padding' for objects of class 'spark' and classes that directly extend this class.  
填充:查询槽“填充”类“星星之火”,并直接继承这个类的类的对象。

'allColors': query slot 'allColors' for objects of class 'sparkline'.  
“allColors:查询插槽的allColors”类“迷你图”的对象。

'lineWidth': query slot 'lineWidth' for objects of class 'sparkline'.  
“线宽”:查询插槽的线宽的对象类“迷你图”。

'pointWidth': query slot 'pointWidth' for objects of class 'sparkline'.  
“pointWidth”查询的插槽的pointWidth“类”迷你图“的对象。

'showIQR': query slot 'showIQR' for objects of class 'sparkline'.  
“showIQR”查询的插槽的showIQR“类”迷你图“的对象。

'boxCol': query slot 'boxCol' for objects of class 'sparkbox'.  
“boxCol:将对象的类的sparkbox”的查询插槽的boxCol。

'outCol': query slot 'outCol' for objects of class 'sparkbox'.          
“outCol:将对象的类的sparkbox”的查询插槽的outCol。

'boxLineWidth': query slot 'boxLineWidth' for objects of class 'sparkbox'.  
“boxLineWidth”查询的插槽的boxLineWidth“的对象类的sparkbox”。

'barCol': query slot 'barCol' for objects of class 'sparkbar'.                      
“巴氏”:将对象的类的sparkbar“的查询插槽的巴氏。

'barSpacingPerc': query slot 'barSpacingPerc' for objects of class 'sparkbar'.  
“barSpacingPerc:将对象的类的sparkbar”的查询插槽的barSpacingPerc。

'dataObj':        query slot 'dataObj' for objects of class 'sparkTable'.          
“dataObj”查询的插槽的dataObj“的对象类的sparkTable”。

'tableContent': query slot 'tableContent' for objects of class 'sparkTable'.          
“tableContent”查询的插槽的tableContent“的对象类的sparkTable”。

'varType':        query slot 'varType' for objects of class 'sparkTable'.                     
VARTYPE:查询插槽的VARTYPE“的类的sparkTable”的对象。

'geographicVar': query slot 'geographicVar' for objects of class 'geoTable'.                             
geographicVar“查询的插槽的geographicVar”类的geoTable“的对象。

'geographicInfo': query slot 'geographicInfo' for objects of class 'geoTable'.          
geographicInfo“查询的插槽的geographicInfo”为对象的类“geoTable的。

'geographicOrder':        query slot 'geographicOrder' for objects of class 'geoTable'.          
“geographicOrder:”为对象的类“geoTable的查询插槽的geographicOrder。

  



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


Bernhard Meindl, Alexander Kowarik, Statistics Austria



参见----------See Also----------

setParameter
setParameter


实例----------Examples----------


  data(pop)
  x <- pop[pop[,2]=="Insgesamt",3]
  a <- newSparkLine(values=x, pointWidth=8)
  
  a <- setParameter(a, type='values', value=sample(1:10, 15, replace=TRUE))
  getParameter(a, 'values')

  a <- setParameter(a, type='allColors', value=c("darkred", "darkgreen","darkblue", "white", "black", "red"))
  getParameter(a, 'allColors')

  getParameter(a, 'pointWidth')
  a <- setParameter(a, type='pointWidth', value=3)
  getParameter(a, 'pointWidth')

  a <- setParameter(a, type='lineWidth', value=1)
  a <- setParameter(a, type='width', value=6)
  a <- setParameter(a, type='height', value=.6)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 02:37 , Processed in 0.043536 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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