Description Usage Arguments Value See Also Examples
Plot methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ## S3 method for class 'density.smcarray.fsb.univariate'
plot(x, type = "l", col = 1:6,
pch = NULL, lwd = NULL, lty = NULL, main = NULL, xlab = NULL,
ylab = "Density", xlim = range(unlist(lapply(x, function(x) x$x))),
ylim = c(0, max(unlist(lapply(x, function(x) x$y)))), ...)
## S3 method for class 'table.smcarray.fsb.univariate'
plot(x, type = "h", col = 1:6,
pch = NULL, lwd = 2, lty = NULL, main = NULL, xlab = NULL,
ylab = "Probability", xlim, ylim = c(0, max(unlist(x))), width = 0.1,
...)
## S3 method for class 'density.smcarray'
plot(x, main = NULL, xlab = NULL,
ylab = "Density", ...)
## S3 method for class 'table.smcarray'
plot(x, main = NULL, xlab = NULL,
ylab = "Probability", ...)
## S3 method for class 'density.smcarray.fsb'
plot(x, main = NULL, xlab = NULL,
ylab = "Density", ...)
## S3 method for class 'table.smcarray.fsb'
plot(x, main = NULL, xlab = NULL,
ylab = "Probability", ...)
## S3 method for class 'density.smcarray.fsb.list'
plot(x, main = NULL, xlab = NULL,
ylab = "Density", ...)
## S3 method for class 'table.smcarray.fsb.list'
plot(x, main = NULL, xlab = NULL,
ylab = "Probability", ...)
## S3 method for class 'table.mcmcarray'
plot(x, main = NULL, xlab = NULL,
ylab = "Probability", ...)
## S3 method for class 'density.mcmcarray.univariate'
plot(x, type = "l",
main = x$data.name, ...)
## S3 method for class 'density.mcmcarray'
plot(x, main = NULL, xlab = NULL, ...)
## S3 method for class 'histogram.mcmcarray'
plot(x, main = NULL, xlab = NULL, ...)
## S3 method for class 'table.mcmcarray.list'
plot(x, main = NULL, xlab = NULL, ...)
## S3 method for class 'density.mcmcarray.list'
plot(x, main = NULL, xlab = NULL,
ylab = "Density", ...)
## S3 method for class 'histogram.mcmcarray.list'
plot(x, main = NULL, xlab = NULL, ...)
|
x |
a density object. |
type, col, pch, lwd, lty |
plotting parameters with useful defaults. |
main, xlab, ylab |
plotting parameters with useful defaults. |
xlim, ylim |
plotting parameters with useful defaults. |
... |
further plotting parameters. See
|
width |
real. width of spacing for bars at the same value. |
NULL
plot.density
,
plot.histogram
, plot.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #' # SMC algorithm
data(out_smc)
par(mfrow = c(2, 2))
plot(biips_density(out_smc$x, bw = 'nrd0', adjust = 1, n = 100))
plot(biips_table(out_smc[['c[2:10]']]))
plot(biips_density(out_smc$x$f))
plot(biips_table(out_smc[['c[2:10]']]$f))
#' # PIMH algorithm
data(out_pimh)
par(mfrow = c(2, 2))
plot(biips_density(out_pimh$x))
plot(biips_table(out_pimh[['c[2:10]']]))
#' # PMMH algorithm
data(out_pmmh)
plot(biips_density(out_pmmh$logtau))
par(mfrow = c(2, 2))
plot(biips_density(out_pmmh$x))
plot(biips_table(out_pmmh[['c[2:10]']]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.