ratio.plot.ade {epade} | R Documentation |
Ratio plot
Description
A Plot for varying kinds of estimators with intervals
Usage
ratio.plot.ade(M, vnames, sectext=NULL,
main=NULL, xlab=NULL, ylab=NULL, legenlab=NULL, rlab=NULL,
col=NULL, tcol=NULL, bgcol=NULL, lcol=NULL,
r=NULL, v=c(0,1), lty=c(1,2), xticks=18,
hlines=TRUE, legends=TRUE, logaxe=FALSE, wall=0)
Arguments
M |
A matrix or a list of matrices where first column is the estimated value, second and third are lower and upper interval limits , rows are different values for comparison. |
vnames |
a vector of character strings with the names for different values (rows) |
sectext |
a secont text to be placed under the vnames, can be p-values for example |
main |
an overall title for the plot |
xlab |
a title for the x axis |
ylab |
a title for the y axis |
legenlab |
a vector of character strings with the names for groups in the legend |
rlab |
a title over the vnames |
col |
a vector of colors for the intervals in each group |
tcol |
color of the text in whole plot |
bgcol |
the background color for plot dekoration |
lcol |
color for the lines in plot, a vector of colors is possible |
r |
a value in (0,1), define the right space for labels. |
v |
the x-value(s) for vertical line(s). |
lty |
the line type |
xticks |
the number of ticks on the x axis or a vector of exact ticks |
hlines |
logical asking whether to draw horizontal grid lines |
legends |
logical asking whether to draw the legend |
logaxe |
logical asking whether to use a logarithmic scale on x axis |
wall |
a number between 0 and 6 for selection the dekoration style of the plot. |
Examples
vnames<-c('Value 1', 'Value 2', 'Value 3', 'Value 4')
x<-abs(rnorm(4))
M1<-cbind(x, x-(x/2), x+(x/2))
x<-abs(rnorm(4))
M2<-cbind(x, x-(x/2), x+(x/2))
x<-abs(rnorm(4))
M3<-cbind(x, x-(x/2), x+(x/2))
ratio.plot.ade(list(M1, M2, M3), vnames=vnames, wall=3,
legenlab=c('group 1', 'group 2', 'group 3'))