MVP.Hist | R Documentation |
Phenotype distribution histogram
MVP.Hist(
phe,
col = c("dodgerblue4", "olivedrab4", "violetred", "darkgoldenrod1", "purple4"),
breakNum = 15,
memo = NULL,
outpath = getwd(),
test.method = "auto",
file.type = "pdf",
file.output = TRUE,
dpi = 300
)
phe |
phenotype data |
col |
The color vector of the histogram. If the number of colors is less than break.n, the color will be reused. If the number of colors is greater than break.n, only the previous break.n colors will be used. |
breakNum |
the number of cells for the histogram. The default value is 15. |
memo |
Character. A text marker on output files |
outpath |
Effective only when file.output = TRUE, determines the path of the output file |
test.method |
The method used to test the normal distribution. The options are "auto", "Shapiro-Wilk", "Kolmogorov-Smirnov", and NULL. When set to "auto", "Shapiro- Wilk" method, "Kolmogorov-Smirnov" method will be used when it is greater than 5000, and it will not be tested when set to NULL. |
file.type |
A string or NULL is used to determine the type of output
file. Can be "jpg", "pdf", "tiff". If it is NULL, it will use
|
file.output |
Logical value. If TRUE, the figures will be generated. |
dpi |
The resolution of the image, specifying how many pixels per inch. |
Output file: MVP.Phe_Distribution.<trait>.<type>
phePath <- system.file("extdata", "07_other", "mvp.phe", package = "rMVP")
phe <- read.table(phePath, header=TRUE)
MVP.Hist(phe, file.output = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.