plotGeoTable-methods(sparkTable)
plotGeoTable-methods()所属R语言包:sparkTable
Plot objects of class 'geoTable'
绘制对象类geoTable
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function that plots objects of class 'geoTable'.
功能绘制对象的类“geoTable。
用法----------Usage----------
plotGeoTable(object, outputType='html', filename=NULL, graphNames='out', transpose=FALSE, include.rownames=FALSE, include.colnames=FALSE, rownames=NULL, colnames=NULL,...)
参数----------Arguments----------
参数:object
an object of class 'geoTable'
类的对象geoTable“
参数:outputType
a character vector of length one specifying the desired output format:
字符向量的长度指定所需的输出格式:
'tex': latex output is produced
“TEX”:乳胶输出
'html': html output is procuded </ul>
“HTML”:,HTML输出procuded </ ul>
参数:filename
the filename of the output (minus '.tex' or '.html'
输出的文件名(减的tex或。的HTML“
参数:graphNames
the main part of the single graphic files that are produced (minus '-someIndex.extension'
单的图形产生的文件(减去的主要部分的 - someIndex.extension
参数:transpose
logical vector of length 1 defining if the plot be transposed
如果被调换的图逻辑向量长度为1的定义
参数:include.rownames
logical vector of length 1 defining if rownames should be included
逻辑向量长度为1的定义是否应包括行名
参数:include.colnames
logical vector of length 1 defining if colnames should be included
逻辑向量长度为1的定义是否应包含列名
参数:rownames
optional chracter vector specifying row names
可选的chracter矢量指定行名称
参数:colnames
optional chracter vector specifying column names
可选的指定列名的chracter矢量
参数:...
additional parameters to be passed
额外的参数传递
(作者)----------Author(s)----------
Bernhard Meindl, Alexander Kowarik, Statistics Austria
实例----------Examples----------
###Example EU population and debt[##例如欧盟人口和债务]
data(popEU,package="sparkTable")
data(debtEU,package="sparkTable")
data(coordsEU,package="sparkTable")
popEU <- popEU[popEU$country%in%coordsEU$country,]
debtEU <- debtEU[debtEU$country%in%coordsEU$country,]
EU <- cbind(popEU,debtEU[,-1])
EUlong <- reshapeExt(EU,idvar="country",v.names=c("pop","debt"), varying=list(2:13,14:25),geographicVar="country",timeValues=1999:2010)
l <- newSparkLine()
l <- setParameter(l, 'lineWidth', 2.5)
content <- list(function(x){"Population:"},l,function(x){"Debt:"},l)
varType <- c(rep("pop",2),rep("debt",2))
xGeoEU <- newGeoTable(EUlong, content, varType,geographicVar="country",geographicInfo=coordsEU)
plotGeoTable(xGeoEU, outputType="html", graphNames="outEU",filename="testEUT",transpose=TRUE)
plotGeoTable(xGeoEU, outputType="html", graphNames="outEU1",filename="testEU",transpose=FALSE)
plotGeoTable(xGeoEU, outputType="tex", graphNames="out1",filename="testEU",transpose=FALSE)
plotGeoTable(xGeoEU, outputType="tex", graphNames="out1",filename="testEUT",transpose=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|