Description Usage Arguments Examples
This function is used to draw Empirical CDF plot. It relies on the trapz function in the caTools package. A user needs to install the caTool library first.
1 2 3 4 |
dd |
A data frame of p-values in which a column represents the p-values or posterior probabilities resulted by a method. |
col.line |
A vector of color characters. The default is NULL and this function automatically assigns the color for each cover shown in the ECDF plot. |
main |
The title of the plot. |
cex.leg |
An integer specifying size of the legend in the the plot. |
drawRef |
If TRUE, then a gray 45 degree line will be added in the plot. |
rm1 |
If users believe that the p-values equal to 1 belong to the different group of the others, and want to exclude them from the calculation of empirical CDF, then use rm1=TRUE. |
lineType |
A vector of integers indicating the type of lines used for the methods. |
addLeg |
If “TRUE" then a legend box with legend is added to the figure. |
xlab |
Label of x axis. |
ylab |
Label of y axis. |
cex.axis |
The size of labels on the axes. |
cex.main |
A characteristic string indicating the size of the main. |
cex.lab |
The size for the labels on x and y. |
axis.padj |
The perpendicular adjustment of ticks. |
lab.padj |
The perpendicular adjustment of labels for an axix. |
lwd |
The width of the line shown in a figure. |
box.lwd |
The width of the box line in a figure. |
1 2 | x<-data.frame(A=runif(100), B=rbeta(100, 0.5, 1.2))
ecdfAUC(x);
|
Loading required package: caTools
Loading required package: RColorBrewer
A B
0.5549111 0.7321791
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.