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

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

[复制链接]
发表于 2012-2-25 18:03:12 | 显示全部楼层 |阅读模式
legendPFDStatsGroupNames(flowPlots)
legendPFDStatsGroupNames()所属R语言包:flowPlots

                                        Create Group Names With Embedded Stats to Use in a Plot Legend
                                         创建嵌入式统计组名称使用在图例

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

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

This function returns a vector of groupNames of the form: "Adults (25) 1.5/.6", which represents the group name, number of subjects in the group, the pfd mean / pfd standard deviation, where pfd = polyfunctional degree.  
这个函数返回一个向量的形式groupNames:“成年人(25)1.5/.6”,它代表该组的名称,数学科组中,PFD平均/的PFD标准偏差,其中的pfd =官能度。


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


   legendPFDStatsGroupNames(pfdGroupStatsList,groupNames)   



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

参数:pfdGroupStatsList
a list of vectors containing the pfd group stats of  group size, pfd group mean, and pfd group standard deviation
包含PFD组统计组大小的向量列表,PFD组的意思是,PFD组标准偏差


参数:groupNames
a vector of group names, such as c("Adult", "Neonate")
一个组名的向量,如c(“成人”,“新生儿”)


值----------Value----------

character vector; the length is equal to the number of groups.  Each element of the vector contains the formatted stats for a group.  For a subset of the adultsNeonates data,
特征向量的长度是相等的组数。向量的每个元素都包含格式化为一组统计。的adultsNeonates数据的一个子集,


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


N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA



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

StackedData
StackedData


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


## Load the PFD data and prepare it for a call to ternaryplot()[#加载PFD数据和准备呼叫ternaryplot()]

data(pfdDF)
pfdDataSubset = subset(pfdDF, stim=="LPS" & concGroup==3 & cell=="mDC")
ternaryData = makeTernaryData(pfdDataSubset, 1, 2, 3:4)
colnames(ternaryData) = c("FD1", "FD2", "FD3-4")

## Make a ternary plot[#请三元图]

library(vcd)
ternaryplot(ternaryData, cex=.5, col=as.numeric(pfdDataSubset$group)*2, main="Stimulation = LPS,
   Concentration Group = 3, Cell = mDC")

## Compute PFD Stats to print in plot legend[#计算PFD的统计,打印图例]

adultPFDData = subset(pfdDataSubset, group=="adult", select=c(PFD1FD3))
neoPFDData = subset(pfdDataSubset, group=="neonate", select=c(PFD1FD3))
groupPFDDataList = list(adultPFDData, neoPFDData)
pfdGroupStatsList = computePFDGroupStatsList(groupPFDDataList, pfdValues=1:3, numDigitsMean=3,
   numDigitsSD=2)
groupNames = c("Adults","Neonates")

## Create group names including the PFD Stats for the legend[#创建组的名称,包括传说中的PFD统计]

legendNames = legendPFDStatsGroupNames(pfdGroupStatsList,groupNames)


## Add the legend to the ternary plot[#传说中的三元图]

grid_legend(0.8, 0.7, pch=c(20,20), col=c(2,4), legendNames, title = "Group (n), mean/sd:",
   gp=gpar(cex=.8))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-8 19:05 , Processed in 0.028895 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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