Usage
inset.exporter(x, xlab = deparse(substitute(x)), log = FALSE, xlim = NULL,
nclass = NULL, ifnright = TRUE, file = NULL, gtype = "wmf", ...)
Arguments
x
name of the variable to be plotted.
xlab
a label for the x-axis. It is often desirable to replace the default x-axis label of the input variable name text string with a more informative label, e.g., xlab = "Cu (mg/kg) in <2 mm="" o-horizon="" soil"<="" code="">.2>
log
if it is required to display the data with logarithmic (x-axis) scaling, set log = TRUE
.
xlim
default limits of the x-axis are determined in the function. However when used stand-alone the limits may be user-defined by setting xlim
, see Note below.
nclass
the default procedure for preparing the histogram is to use the Scott (1979) rule. This usually provides an informative histogram, other optional rules are nclass = "sturges"
or nclass = "fd"
; the later standing for Freedman-Diac
ifnright
controls where the sample size is plotted in the histogram display, by default this in the upper right corner of the plot. If the data distribution is such that the upper left corner would be preferable, set ifnright = FALSE
.
file
the first part of the file name identifying the data source for saving the function output in the R working directory, see Details below.
gtype
the format of the graphics file to be saved. By default gtype = "wmf"
for a Windows metafile. Other alternatives are gtype = "jpg"
for a jpeg file, gtype = "png"
for a portable graphics file, gtype = "ps"
...
further arguments to be passed to methods. For example, by default individual data points in the ECDF and CPP plots are marked by a plus sign, pch = 3
, if a cross or open circle is desired, then set pch = 4
or pch = 1