forked from jrthompson54/DGEobj.plots
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplotPvalHist.Rd
56 lines (47 loc) · 1.67 KB
/
plotPvalHist.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotPValHist.R
\name{plotPvalHist}
\alias{plotPvalHist}
\title{Plot histogram analysis of p-value distributions}
\usage{
plotPvalHist(
P.Val,
facet = TRUE,
binWidth = 0.02,
baseFontSize = 12,
facetFontSize = NULL,
alpha = 0.6,
color = "dodgerblue3",
fill = "dodgerblue3"
)
}
\arguments{
\item{P.Val}{A matrix or dataframe of numeric data; col = samples}
\item{facet}{Set to FALSE to print individual plots instead of a faceted plot. (Default = TRUE)}
\item{binWidth}{Range is always 0-1 for p-values. (Default = 0.02)}
\item{baseFontSize}{Set the base font size for the plot using theme_grey. (Default = 12)}
\item{facetFontSize}{Control font size on the individual plot headers
(default = NULL). 10 seems good for knitr output (dependent on length of
sample titles). Bigger (e.g. 14) works better for PPT.}
\item{alpha}{Set the transparency. (Default = 0.6)}
\item{color}{Color for the histogram outline. (Default = "dodgerblue3")}
\item{fill}{Fill color for the histogram. (Default = "dodgerblue3")}
}
\value{
A ggplot2 object if facet = TRUE or a list of plots if facet = FALSE. (Default = TRUE)
}
\description{
Generate a facet plot (or optionally individual plots) from a dataframe of
numbers. Intended to perform histogram analysis of p-value distributions,
but should be useful for any dataframe of numeric columns.
}
\examples{
\dontrun{
# Print to console using all defaults
MyPvalMatrix <- extractCol(getType(myDGEobj, "topTable"), "P.Value")
plotPvalHist(MyPvalMatrix)
# Use some custom arguments
myplot <- plotPvalHist(MyPValMatrix,
facetFontSize = 14)
}
}