histplot: histplot

Description Usage Arguments Value Author(s) Examples

View source: R/histplot.R

Description

Histogram drawing

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
histplot(
  x,
  color = "#99d6e1",
  rug_color = "#f79999",
  freq = FALSE,
  lwd = 2,
  rug_lwd = 1,
  main = "",
  xlab = "",
  ylab = "",
  cex.main = 1.5,
  cex.lab = 1.5,
  cex.axis = 1.5,
  breaks = "Sturges",
  ylim = NULL,
  xpos = 0.03,
  ypos = 0,
  cex.text = 1.2
)

Arguments

x

Input phenotype data.

color

The color of histogram.

rug_color

The color of rug under the histogram.

freq

If FALSE, the histogram graphic is a representation of frequencies; if TRUE, the histogram graphic is a representation of probability densitie. (Default: FALSE)

lwd

The line width of histogram. (Default: 2)

rug_lwd

The line width of rug under the histogram. (Default: 1)

main

The title of plot.

xlab

The X axis labels.

ylab

The Y axis labels

cex.main

The magnification to be used for title. (Default: 1.5)

cex.lab

The magnification to be used for axis labels. (Default: 1.5)

cex.axis

The magnification to be used for axis annotation. (Default: 1.5)

breaks

The number of bars in the histogram.

ylim

Y axis ranges.

xpos

The horizontal position of the pvalue label. (Default: 0.03)

ypos

The vertical position of the pvalue label. (Default: 0)

cex.text

The magnification to be used for pvalue labels. (Default: 1.2)

Value

Histogram and p-value of Shapiro-Wilk Normality Test.

Author(s)

Peng Zhao <pengzhao@nwafu.edu.cn>

Examples

1
2
3
4
data("wheatds")
inlier <- outlier(wheatds, sample = "Line", loc = "Env", rep = "Rep", phe = "DS", mode = "blup")
stat_out <- stat(x = inlier, sample = "Sample", phe = "inlier")
histplot(x = stat_out$mean)

Phenotype documentation built on Aug. 6, 2020, 5:10 p.m.