hapVsPheno | R Documentation |
hapVsPheno
hapVsPheno(
hap,
pheno,
phenoName,
hapPrefix = "H",
title = "",
comparisons = comparisons,
method = "t.test",
method.args = list(),
symnum.args = list(),
mergeFigs = FALSE,
angle = angle,
hjust = hjust,
vjust = vjust,
minAcc = minAcc,
freq.min = freq.min,
outlier.rm = TRUE,
...
)
hap |
object of hapResult class, generate with |
pheno |
object of data.frame class, imported by |
phenoName |
pheno name for plot, should be one column name of pheno |
hapPrefix |
prefix of hapotypes, default as "H" |
title |
a charater which will used for figure title |
comparisons |
a list contains comparison pairs
eg. |
method |
a character string indicating which method to be used for comparing means. |
method.args |
a list of additional arguments used for the test method.
For example one might use |
symnum.args |
a list of arguments to pass to the function
In other words, we use the following convention for symbols indicating statistical significance:
|
mergeFigs |
bool type, indicate whether merge the heat map and box
plot or not. Default as |
angle |
the angle of x labels |
hjust , vjust |
hjust and vjust of x labels |
minAcc , freq.min |
If observations number of a Hap less than this number will not be compared with others or be ploted. Should not less than 3 due to the t-test will meaninglessly. Default as 5 |
outlier.rm |
whether remove ouliers, default as TRUE |
... |
Arguments passed on to
|
list. A list contains a character vector with Haps were applied
student test, a mattrix contains p-value of each compare of Haps and a
ggplot2 object named as figs if mergeFigs set as TRUE
, or two ggplot2
objects names as fig_pvalue and fig_Violin
data("geneHapR_test")
# plot the figs directly
hapVsPheno(hap = hapResult,
pheno = pheno,
phenoName = "GrainWeight.2021",
minAcc = 3)
# do not merge the files
results <- hapVsPheno(hap = hapResult,
pheno = pheno,
phenoName = "GrainWeight.2021",
minAcc = 3,
mergeFigs = FALSE)
plot(results$fig_pvalue)
plot(results$fig_Violin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.