## import data
# data(MetaGenotypeCount)
## delete first line
# temp=MetaGenotypeCount[-1,];
# result=meta.MCPerm(case_11=as.numeric(temp[,14]),case_12=as.numeric(temp[,16]),
# case_22=as.numeric(temp[,18]),control_11=as.numeric(temp[,15]),
# control_12=as.numeric(temp[,17]),control_22=as.numeric(temp[,19]),
# model="allele",fixed_method="MH",random_method="DL",repeatNum=1000)
## set working directory to save the plots.
# setwd("D:\")
# pdf("PermMeta.LnOR.boxplot.pdf",height=6,width=9)
# par(mfrow=c(2,3))
# PermMeta.LnOR.boxplot(result,plot="LnOR",plot_study="all",order="no")
# PermMeta.LnOR.boxplot(result,plot="LnOR",plot_study="all",order="LnOR",
# main="LnOR, order by LnOR")
# PermMeta.LnOR.boxplot(result,plot="LnOR",plot_study="all",order="LnOR_VAR",
# main="LnOR, order by LnOR_VAR")
# PermMeta.LnOR.boxplot(result,plot="LnOR",plot_study="all",order="VAR_LnOR",
# main="LnOR, order by VAR_LnOR")
# PermMeta.LnOR.boxplot(result,plot="LnOR",plot_study="all",order="sample",
# main="LnOR, order by sample")
# PermMeta.LnOR.boxplot(result,plot="LnOR_VAR",plot_study=c(1,4,14,12),order="no",
# main="LnOR_VAR, no order")
# PermMeta.LnOR.boxplot(result,plot="LnOR_VAR",plot_study=c(1,4,14,12),order="LnOR",
# main="LnOR_VAR, order by LnOR")
# PermMeta.LnOR.boxplot(result,plot="LnOR_VAR",plot_study=c(1,4,14,12),order="LnOR_VAR",
# main="LnOR_VAR, order by LnOR_VAR")
# PermMeta.LnOR.boxplot(result,plot="LnOR_VAR",plot_study=c(1,4,14,12),order="VAR_LnOR",
# main="LnOR_VAR, order by VAR_LnOR")
# PermMeta.LnOR.boxplot(result,plot="LnOR_VAR",plot_study=c(1,4,14,12),order="sample",
# main="LnOR_VAR, order by sample")
# dev.off()
Run the code above in your browser using DataLab