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

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

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

                                        Compute Group Stats on PFD Data to Be Used In a Legend
                                         PFD的数据统计计算集团二手传奇

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

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

This function can be used with ternaryplot() to add PFD group stats to, say, the legend. The stats computed are group size (N), pfd group mean, and pfd group standard deviation.
添加PFD组的统计,说,传说,此功能可用于与ternaryplot()。统计计算组(N)的大小,PFD组的意思,和PFD组标准偏差。


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


   computePFDGroupStatsList(groupPFDDataList, pfdValues=1:3, numDigitsMean=3, numDigitsSD=2)   



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

参数:groupPFDDataList
one list item per group, each list item contains a matrix of PFD        percentages; the rows are subjects, and the columns are pfd categories.
每一个组列表项,每个列表项包含PFD的百分比矩阵;行科目,列PFD类别。


参数:pfdValues
vector of the PFD values that the columns in each matrix in the  groupPFDDataList represent; eg. 1:3 for (PFD1,PFD2,PFD3).
在在groupPFDDataList的每个矩阵列代表的PFD值向量;如。 1:3(PFD1分别PFD2,PFD3)为。


参数:numDigitsMean
return a mean rounded to this number of digits
返回这个位数四舍五入至平均


参数:numDigitsSD
return a standard deviation rounded to this number of digits
返回一个标准差,这个位数四舍五入至


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

a list; each list item contains the stats for a group as a 3 element character vector containing
列表,每个列表项包含3元的特征向量包含的一组统计


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


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



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

StackedData, pfdData
StackedData,pfdData


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


## Load PFD data to plot[#装入PFD的数据绘制。]
data(pfdDF)
pfdDataSubset = subset(pfdDF, stim=="LPS" & concGroup==3 & cell=="mDC")

## Prepare the PFD Data for a call to ternaryplot()[#准备呼叫的PFD数据到ternaryplot()]
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 Group Stats to use in the legend of the ternary plot[#计算集团统计,使用在三元图的传说]
adultPFDData = subset(pfdDataSubset, group=="adult", select=c(PFD1FD3))
neoPFDData = subset(pfdDataSubset, group=="neonate", select=c(PFD1FD3))
groupPFDDataList = list(adultPFDData, neoPFDData)

## Specifically, compute the PFD Group Stats List[#具体来说,计算PFD集团统计名单]
pfdGroupStatsList = computePFDGroupStatsList(groupPFDDataList, pfdValues=1:3, numDigitsMean=3,
   numDigitsSD=2)
groupNames = c("Adults","Neonates")

## Create group names for the legend based on the PFD Group Stats List[#创建组的基础上的PFD集团统计名单图例名]
legendNames = legendPFDStatsGroupNames(pfdGroupStatsList,groupNames)
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 21:56 , Processed in 0.020023 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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