Plots n, possibly
transformed, against trnsformed p and draws contours of
constant effect size.
harrison17metap
The p value scale on the x-axis is a logarithmic one
but folded at the null value so that the extreme values represent
small probabilities in each direction.
The scale for the y-axis is user selectable.
The original scale in the Stata version is
(_10n)^2log(n, base = 10) ^ 2 which is obtained by
setting yscale to "classic"
but it is
also possible to use nsqrt(n)
which is the default or n by setting
yscale to "n".
Setting yscale to "userfun" allows for the
user to supply a function for transformation.
The function (of a single
argument) should be given to the userfun
parameter.
If the dataset contains extreme values the
plot may be uninformative and the xlimit
and ylimit parameters my be helpful to clip
the plot.
If they are not specified the function tries
to choose suitable values.
The values for xlas and ylas
control the orientation of the tick labels
relative to the plot.
The default values are usually satisfactory
but if there are many ticks they may need
setting explicitly.
For the contours if the type parameter in contours
is NULL (the default) no contours will be plotted.
The options available are
“smd” (standardised mean difference)
“corr” (correlation)
“or” (odds ratio).
The contours are labelled unless contlabs is set to FALSE.
The function tries to position these so they are not obscured
by the contour lines but if that is unsatisfactory then
it is best to suppress them and position them manually
or use a legend to identify line types.
The pch parameter may either be a single value
or a vector of the same length as p.
It may contain anything which is legal as input to
the parameter of the same name in the graphics
library and will be used for the plotted points.
The cols parameter works similarly.
The values of lefttext and righttext are
used to produce labels under the x-axis and
are placed level with the label.
By default they are not produced.
The return values from the function may be useful if further
annotations are required as they give the axis limits in
plotting units.
These are what are needed for the arguments to
legend for instance.
Note that zero or one are not valid p-values and
are silently removed and values of
n less than 2
are not plotted.