PlotDensComp1vsComp2: Plot one component versus another in a density plot

Description Usage Arguments Value Author(s) See Also

View source: R/plotutils.R

Description

This function takes the result of adaptiveMH or of pawl, and component indices, and draws a 2D density plot with the first component on the x-axis and the second on the y-axis.

Usage

1
PlotDensComp1vsComp2(results, comp1, comp2)

Arguments

results

Object of class "list": either the output of pawl or of adaptiveMH.

comp1

Object of class "numeric": specifies the index of the component to plot on the x-axis.

comp2

Object of class "numeric": specifies the index of the component to plot on the y-axis.

Value

The function returns a ggplot2 object.

Author(s)

Luke Bornn <bornn@stat.harvard.edu>, Pierre E. Jacob <pierre.jacob.work@gmail.com>

See Also

ggplot


PAWL documentation built on May 2, 2019, 5:58 a.m.