View source: R/plotting.distributions.R
plotting.distributions | R Documentation |
This function is used by other functions and will generally not be used directly by users. Can be used to plot
test statistics on simulated data generated by other functions (e.g. slope.test.stasis
,
auto.corr.test.trend
, runs.test.RW
).
plotting.distributions(sim.data, obs, test, xlab, main)
sim.data |
vector containing test statistics calculated from the simulated data |
obs |
the test statistic calculated from the observed data |
test |
the test that has been applied (runs.test, slope.test, auto.corr, net.change.test) |
xlab |
label for x-axis |
main |
plot label |
This function is used by other functions and will generally not be used directly by users. Can be used to plot
test statistics on simulated data generated by other functions (e.g. slope.test.stasis
,
auto.corr.test.trend
, runs.test.RW
).
Histogram of test statistics calculated from simulated data. The test statistic calculated from the observed data is indicated by a vertical broken line.
Kjetil L. Voje
fit3adequacy.trend
, auto.corr.test.RW
, auto.corr.test.stasis
## generate a paleoTS objects by simulating a directional trend x <- sim.GRW(ns=40, ms=0.5, vs=0.1) ## run the test for.plotting<-auto.corr.test.trend(x,mstep,vstep) ## plot plotting.distributions(for.plotting$replicates, for.plotting$summary[1], test="auto.corr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.