plot.Mposterior: Plot an object of class Mposterior.

Description Usage Arguments Author(s) Examples

View source: R/find-weiszfeld-median.R

Description

Plot of Mposterior class object; ... are ignored.

Usage

1
2
## S3 method for class 'Mposterior'
plot(x, ...)

Arguments

x

object of class Mposterior or output of findWeiszfeldMedian

...

extra arguments are ignored currently

Author(s)

Sanvesh Srivastava [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(12345)
## list that contains subset posterior samples from 2-dim Gaussian density
subAtomList <- vector("list", 5)
subAtomList[[1]] <- cbind(rnorm(100, mean = 1),  rnorm(100, mean = 1))
subAtomList[[2]] <- cbind(rnorm(100, mean = -1),  rnorm(100, mean= -1))
subAtomList[[3]] <- cbind(rnorm(100, mean = -1),  rnorm(100, mean = 1))
subAtomList[[4]] <- cbind(rnorm(100, mean = 1),  rnorm(100, mean = -1))
subAtomList[[5]] <- cbind(rnorm(100, mean = 2),  rnorm(100, mean = 2))
library(Mposterior)
medPosterior <- findWeiszfeldMedian(subAtomList, sigma = 0.1, maxit = 100, tol = 1e-10)
plot(medPosterior)

Mposterior documentation built on May 29, 2017, 6:38 p.m.