# NOT RUN {
# Use leukstats data
data(leukstats)
# ID number on the x-axis, delta-gap on the y-axis, using an interval null hypothesis of
# (-0.3, 0.3) for the log mean difference in expression levels (fold change).
plotman(est.lo=leukstats$ci.lo, est.hi=leukstats$ci.hi,
null.lo=-0.3, null.hi=0.3,
set.order=NA,
type="delta-gap",
ref.lines=NA,
int.pch=16, int.cex=0.4,
title.lab="Leukemia Example",
y.lab="Delta-gap",
x.lab="Position (ID)",
legend.on=TRUE)
# ID number on the x-axis, -log10(classical p-value) on the y-axis, using an interval
# null hypothesis of (-0.3, 0.3) for the log mean difference in expression levels
# (fold change).
plotman(est.lo=leukstats$ci.lo, est.hi=leukstats$ci.hi,
null.lo=-0.3, null.hi=0.3,
set.order=NA,
type="p-value",
p.values=-log10(leukstats$p.value),
ref.lines=-log10(0.05),
int.pch=16, int.cex=0.4,
title.lab="Leukemia Example",
y.lab=expression("-log"[10]*"(p-value)"),
x.lab="Position (ID)",
legend.on=TRUE)
# Second-generation p-value (SGPV) on the x-axis, -log10(classical p-value) on the
# y-axis, using an interval null hypothesis of (-0.3, 0.3) for the log mean difference
# in expression levels (fold change).
plotman(est.lo=leukstats$ci.lo, est.hi=leukstats$ci.hi,
null.lo=-0.3, null.hi=0.3,
set.order="sgpv",
type="comparison",
p.values=-log10(leukstats$p.value),
ref.lines=c(-log10(0.05), -log10(0.001)),
int.pch=16, int.cex=0.4,
title.lab="Leukemia Example",
y.lab=expression("-log"[10]*"(p-value)"),
x.lab="Second-generation p-value ranking",
legend.on=TRUE)
# }
Run the code above in your browser using DataLab