[R] Plotting leapfrog in R

Jim Lemon jim at bitwrit.com.au
Fri Apr 13 14:05:00 CEST 2012


On 04/13/2012 12:25 PM, Colstat wrote:
> Dear List
>
> Is there a package for leapfrog plotting (Hamiltonian Monte Carlo
> estimation) in R?  I tried the actual "LEAPFrOG" package which doesn't
> actually give the plot like this one?
> http://xianblog.files.wordpress.com/2010/09/hamilton.jpg
>
> How doe one plot this in R?  So, there semi-circle and dots on that
> semi-circle.
> I don't think curve() or plot() would produce such plot.  Thanks in advance!
>
Hi Colstat,
If the discontinuities in the function can be characterized, perhaps by 
the apparently equal q values of two points, you can specify the line 
type as dotted for those lines and solid for all of the rest. Given 
that, it just becomes a point/line plot.

Jim



More information about the R-help mailing list