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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|