Description Usage Arguments Details Value Author(s) See Also Examples
This function plots a list of returns of hypo_test
.
1 2 |
x |
A numeric vector of data values where is hypothesis test is applied on. |
org_x |
A numeric vector of original data values. Default is |
clst |
A list of matrices. Each matrix has three columns where the first column is clusters starting indexes, second column is the corresponding clusters ending indexes and the third column is the corresponding significant level for clusters. |
alpha_lvl |
Maximum alpha level in legend. |
unit |
A number indicating bin width for histogram in the plot. |
x_range |
|
plt_mgn |
extra margin of clusters shown in plot. |
If ggplot2 is installed, the plot is done via ggplot
. If not,
the plot is done via basic R plot
.
Number of layers in the plot is determined by number of elements in clst
.
alpha_lvl
must be equal or larger than the maximum significant level
of clusters in the plot.
x
and org_x
are not necessary to be the same. Within some
specific scenarios where we do not want to detect clusters among
all observations, we can apply hypo_test
only on
cdf
that are converted by x
.
Please be awared the each component in clst
must
come from the detected results of x
.
plt_mgn
is for small clusters that can barely be seen in plot. This
happens when the magnitude of cluster is too small as sample size quit large.
This function returns a plot. If ggplot installed, it returns an
object as ggplot
. If not, it returns an object as recordedplot
Zhicong Zhao
hypo_test
for detected clusters and
prob_fun
for q-values of corresponding clusters.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.