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

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

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

                                        Prepare PFD Data for a Call to ternaryplot()
                                         PFD的数据准备以ternaryplot检测:()

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

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

This function takes a dataframe of polyfunctional degree (pfd) data and  prepares a matrix with 3 columns (egs. PFD1,PFD2,PFD3, or PFD1-2, PFD3-4, PFD5-6)  to use as input to ternaryplot() in the vcd pkg.  If multiple columns are specified for one of the three columns, the percentages for the multiple columns will be summed.  
这个函数接受一个官能度(PFD)的数据的dataframe,并准备用3列(PFD1分别egs.,PFD2,PFD3,或PFD1分别-2,PFD3-4,PFD5-6)矩阵作为输入使用ternaryplot() VCD PKG。如果指定为一体的三列,多列的多列的百分比将总结。


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


   makeTernaryData(pfdData, columns1, columns2, columns3,
      columnNames=c("FD=1","FD=2","FD=3"))



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

参数:pfdData
data frame containing data for 1 or more groups
数据框包含1个或多个组的数据


参数:columns1
numeric; column(s) of pfd data to place in the first column of the matrix
PFD的数据列(S)将在第一列的矩阵数字;


参数:columns2
numeric; column(s) of pfd data to place in the second column of the matrix
PFD的数据列(S)将在第二列的矩阵数字;


参数:columns3
numeric; column(s) of pfd data to place in the third column of the matrix
PFD的数据列(S)将在第三列的矩阵数字;


参数:columnNames
(optional) character vector of names for the three columns of the matrix
(可选)的名称为三列的矩阵的特征向量


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

matrix of 3 columns; rows = subjects, cols = data for each point on the triangle
3列的矩阵;行=科目,COLS =三角形上的每个点的数据


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


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



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

StackedData
StackedData


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


## Load the PFD Data to plot in a ternary 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 the ternary plot[#三元图]

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

## Prepare a legend with group stats[#准备组统计传奇]

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")
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 19:13 , Processed in 0.025924 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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