Plot one component versus another in a scatter plot

Share:

Description

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

Usage

1
PlotComp1vsComp2(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