fdr2d
.
plot.fdr2d.result(x, levels, nr.plot = 20, add = FALSE, grid = FALSE, pch = ".",xlab, ylab, vfont = c("sans serif", "plain"), lcol = "black", ...)
Tornadoplot(x, levels, nr.plot = 20, label = FALSE, constrain = FALSE, pch = ".", xlab, ylab, vfont = c("sans serif", "plain"), lcol = "black", ...)
Volcanoplot(x, df, levels, nr.plot = 20, label = FALSE, constrain = FALSE, pch = ".", xlab, ylab, vfont = c("sans serif", "plain"), lcol = "black", ...)
fdr2d
.fdr2d
.contour
.plot.default
.x
, invisibly.
By default, the estimated fdr isolines are smoothed and cropped to the convex hull of the observed test statistics by using akima. This is entirely a graphical pre-processing step which produces smoother isolines and enforces sanity at the edges of the observed distribution; it does not change the estimated fdr at all. This graphical smoothing is controlled via the argument nr.plot
, which specifies the grid size, with lower values resulting in stronger smoothing. In order to suppress graphical smoothing, set nr.plot
to zero.
Note that the test statistics and the fdr for the volcano- and tornado plots are not computed from scratch, but rather through transformation of the original results. Specifically, the isolines in these plots are also transformed; this has the unfortunate side effect that the labelling of isolines in these plots is not nearly as pretty as the standard provided by contour
. This functionality is currently not available outside of contour
, and our implementation in DrawContourlines
frankly leaves a lot to be desired. We apologize for the inconvenience.
fdr2d
, DrawContourlines
# Create res2d
example(fdr2d)
par(mfrow=c(2,2))
plot(res2d, main="Generic plotting")
Volcanoplot(res2d, df=length(grp)-2, main="Volcano plot", label=TRUE)
Tornadoplot(res2d, main="Tornado plot", label=TRUE)
# This is without graphical smoothing
plot(res2d, main="Generic plotting, raw", nr.plot=0)
Run the code above in your browser using DataLab