Learn R Programming

PAWL (version 0.5)

PlotDensComp1vsComp2: Plot one component versus another in a density plot

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

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.

See Also

ggplot