cdfPlot {pedometrics} | R Documentation |
This function is a modified version of cdf.plot()
of
spsurvey-package including new argument options.
cdfPlot(obj, ind, units.cdf = "percent", type.plot = "s", type.cdf = "continuous", logx = "", xlbl = NULL, ylbl = "Percent", ylbl.r = NULL, figlab = NULL, legloc = "BR", confcut = 5, show.conflev = TRUE, conflev = 95, show.param = TRUE, round = 0, col.param = "black", ...)
obj |
Object with the estimated CDF. The resulting object of
|
ind |
Indicator variable. The name of the variable as displayed in the
resulting object of |
units.cdf |
Indicator for the type of units in which the CDF is
plotted, where “percent” means the plot is in terms of percent of the
population, and “units” means the plot is in terms of units of the
population. Defaults to |
type.plot |
Type of plot. Desired type of plot to be produced, with
options |
type.cdf |
Character string consisting of the value “continuous”
or “ordinal” that controls the type of CDF plot for each indicator.
Defaults to |
logx |
Character string consisting of the value |
xlbl |
Character string providing the x-axis label. If this argument
equals |
ylbl |
Character string providing the the y-axis label. Defaults to
|
ylbl.r |
Character string providing the label for the right side
y-axis, where |
figlab |
Character string providing the plot title. Defaults to
|
legloc |
Indicator for location of the plot legend, where |
confcut |
Numeric value that controls plotting confidence limits at the
CDF extremes. Confidence limits for CDF values (percent scale) less than
|
show.conflev |
Logical for showing the confidence limits of the CDF.
Defaults to |
conflev |
Numeric value of the confidence level used for confidence
limits. Defaults to |
show.param |
Logical for showing the parameters of the CDF. Available
parameters are the mean, the median, and a percentile defined by the
argument |
round |
Numeric to set the rounding level of the parameters of the CDF. |
col.param |
Color of the lines showing the parameters of the CDF.
Defaults to |
... |
Additional arguments passed to |
Parameter type.plot
is used only when type.cdf = "Continuous"
.
Care should be taken with possible conflicts between the arguments of the
original function cdf.plot
and those passed to
plot()
using ...
. The existence of conflicts between these two
functions was one of the reasons for creating this new implementation.
A plot of the estimated cumulative distribution function with confidence limits.
Most of the source code that constitutes this function was originaly published in the spsurvey-package, version 2.6 (2013-09-20). The authors were asked to include a few new functionalities, but did not seem to be interested in doing so, since no reply was obtained. This implementation is a way of including such functionalities. When using this function, credit should be given to the authors of the original implementation in the spsurvey-package.
Tony Olsen Olsen.Tony@epa.gov
Tom Kincaid
Kincaid.Tom@epa.gov
Alessandro Samuel-Rosa
alessandrosamuelrosa@gmail.com
Brus, D. J., Kempen, B. and Heuvelink, G. B. M. (2011). Sampling for validation of digital soil maps. European Journal of Soil Science, v. 62, p. 394-407.
Diaz-Ramos, S., D.L. Stevens, Jr., and A.R. Olsen. (1996). EMAP Statistical Methods Manual. EPA/620/R-96/XXX. Corvallis, OR: U.S. Environmental Protection Agency, Office of Research and Development, National Health Effects and Environmental Research Laboratory, Western Ecology Division.
Kincaid, T. M. and Olsen, A. R. (2013) spsurvey: Spatial Survey Design and Analysis. R package version 2.6. URL: http://www.epa.gov/nheerl/arm/.
## Not run: ## Estimate the CDF my.cdf <- spsurvey::cont.analysis(spsurvey.obj = my.spsurvey) ## See indicator levels in the resulting object levels(my.cdf$Pct$Indicator) ## Plot CDF cdfPlot(obj = my.cdf, ind = "dz", figlab = "", xlbl = "Difference (m)", xlim = c(-30, 10), type.plot = "s") ## End(Not run)