postppt.plot: Plot method for posterior projected Polya tree

View source: R/postppt.plot.R

postppt.plotR Documentation

Plot method for posterior projected Polya tree

Description

Plots posterior projected Polya tree estimates.

Usage

postppt.plot(postppt.circ,
plot.type = c("circle", "line", "summary", "a.sim", "mu.sim", "cpos"),
interval = TRUE, control.circular = list(),
shrink = 1, tol = 0.04,sep = 0.025, ylim = NULL, xlim = NULL, breaks = 12)

Arguments

postppt.circ

object returned by the dsimpostppt function.

plot.type

type of plot to be drawn: "circle" for circular plot, "line" for linear plot, "summary" for boxplot of mean direction and concentration, "cpos" for cpos scatter plot, "a.sim" for summary plots of simulated alphas and "mu.sim" for summary plots of simulated mu1 and mu2.

interval

logical. If TRUE 95% credible intervals will be shown in the circular and linear plots.

control.circular

attributes of circular object in order to draw the circle.See circular.

shrink

parameter that controls the size of the plotted circle. Default is 1. Larger values shrink the circle, while smaller values enlarge the circle.

tol

proportion of white space at the margins of plot.

sep

constant used to specify the distance between stacked points. Default is 0.025;smaller values will create smaller spaces

ylim

range to be encompassed by "y" axis.

xlim

range to be encompassed by "x" axis.

breaks

one of: a vector giving the breakpoints between histogram cells, a function to compute the vector of breakpoints, a single number giving the number of cells for the histogram, a character string naming an algorithm to compute the number of cells, a function to compute the number of cells.

See Also

plot, plot.density.circular

Examples

 z2 <- dsimpostppt(deer, units = "radians", it = 10, ti =1, bi=0, ha = 1)
postppt.plot(z2, plot.type= "line" , shrink = 1.4, tol = 1.2, ylim = c(0,0.6))
postppt.summary(z2)
postppt.plot(z2, plot.type= "cpos" )
postppt.plot(z2, plot.type= "circle" , shrink = 1.4, tol = 1.2)


PPTcirc documentation built on Aug. 30, 2022, 9:06 a.m.