Learn R Programming

rMVP (version 0.99.14.1)

MVP.Hist: Phenotype distribution histogram

Description

Phenotype distribution histogram

Usage

MVP.Hist(phe, col = c("dodgerblue4", "olivedrab4", "violetred",
  "darkgoldenrod1", "purple4"), breakNum = 15, file.type = "pdf",
  dpi = 300)

Arguments

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.

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 dev.new() to create a new graphics device in the current environment, which may be RStudioGD or the default device of the system.

dpi

The resolution of the image, specifying how many pixels per inch.

Value

Output file: MVP.Phe_Distribution.<trait>.<type>

Examples

Run this code
# NOT RUN {
phePath <- system.file("extdata", "07_other", "mvp.phe", package = "rMVP")
phe <- read.table(phePath, header=TRUE)
MVP.Hist(phe)
# }

Run the code above in your browser using DataLab