Gets the x-label and zero-bar details
prFpGetGraphTicksAndClips(
xticks,
xticks.digits,
grid,
xlog,
xlab,
lwd.xaxis,
col,
txt_gp,
clip,
zero,
x_range,
mean,
graph.pos,
shapes_gp = fpShapesGp()
)
list
Returns a list with axis_vp, axisGrob, labGrob, zero and clip
Optional user-specified x-axis tick marks. Specify NULL to use
the defaults, numeric(0) to omit the x-axis. By adding a labels-attribute,
attr(my_ticks, "labels") <- ...
you can dictate the outputted text
at each tick. If you specify a boolean vector then ticks indicated with
FALSE wont be printed. Note that the labels have to be the same length
as the main variable.
The number of digits to allow in the x-axis if this is created by default
If you want a discrete gray dashed grid at the level of the
ticks you can set this parameter to TRUE
. If you set the parameter
to a vector of values lines will be drawn at the corresponding positions.
If you want to specify the gpar
of the lines then either
directly pass a gpar
object or set the gp attribute e.g.
attr(line_vector, "gp") <- gpar(lty = 2, col = "red")
If TRUE, x-axis tick marks are to follow a logarithmic scale, e.g. for
logistic regressoin (OR), survival estimates (HR), Poisson regression etc.
Note: This is an intentional break with the original forestplot
function as I've found that exponentiated ticks/clips/zero effect are more
difficult to for non-statisticians and there are sometimes issues with rounding
the tick marks properly.
x-axis label
lwd for the xaxis, see gpar
Set the colors for all the elements. See fpColors
for
details
Set the fonts etc for all text elements. See fpTxtGp
for details
Lower and upper limits for clipping confidence intervals to arrows
x-axis coordinate for zero line. If you provide a vector of length 2 it will print a rectangle instead of just a line. If you provide NA the line is suppressed.
The range that the values from the different confidence interval span
The original means, either matrix or vector
The position of the graph element within the table of text. The
position can be 1-(ncol(labeltext) + 1)
. You can also choose set the position
to "left"
or "right"
.
Sets graphical parameters (squares and lines widths, styles, etc.)
of all shapes drawn (squares, lines, diamonds, etc.). This overrides col
,
lwd.xaxis
, lwd.zero
, lwd.ci
and lty.ci
.