plot.SANmcmc | R Documentation |
Plot method for objects of class SANmcmc
.
The function displays two graphs, meant to analyze the estimated distributional and observational clusters.
## S3 method for class 'SANmcmc'
plot(
x,
type = c("boxplot", "ecdf", "scatter"),
estimated_clusters = NULL,
burnin = 0,
palette_brewed = FALSE,
ncores = 1,
...
)
x |
object of class |
type |
what type of plot should be drawn (only for the left-side plot). Possible types are "boxplot", "ecdf", and "scatter". |
estimated_clusters |
the output of a call to |
burnin |
the length of the burn-in to be discarded (default is 2/3 of the iterations). |
palette_brewed |
(logical) the color palette to be used. Default is |
ncores |
if the partition is computed, the number of CPU cores to use to estimate the clusters, i.e., the number of simultaneous runs at any given time. A value of zero indicates to use all cores on the system. |
... |
additional graphical parameters to be passed when |
The function plots a summary of the fitted model.
print.SANmcmc
, estimate_clusters
set.seed(123)
y <- c(rnorm(40,0,0.3), rnorm(20,5,0.3))
g <- c(rep(1,30), rep(2, 30))
out <- sample_fiSAN(nrep = 500, burn = 200,
y = y, group = g,
nclus_start = 2,
maxK = 20, maxL = 20,
beta = 1)
plot(out, type = "ecdf", palette_brewed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.