kernel-density

How do a perform a weighted, 2d kernel density estimation in R?

I would like to produce a kernel density estimation in R, and am somewhat bamboozled by all the different packages. I need to be able to: Specify weights Specify bandwidth size Specify bin size How would you go about this? Bonus points for a code snippet. ...