[R] how to create contour lines on a 3D surface plot by persp3d from rgl package

2015-08-20 Thread Aki Hoji
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 HI, I created a 3D surface plot of 2D surface data (generated by kde2d) by using persp3d from rlg as follows; persp3d(dens3d, theta=50, phi=25, expand=0.75, col=color[zcol], ticktype="detailed",axes=TRUE) I would like to add contour

[R] fitdistrplus : how to get around sigma must be between 0 and 1

2014-06-26 Thread Aki Hoji
Hi all, I posted this question on Cross Validated a while ago but have never gotten an answer. I am trying to see if a discrete distribution will fit a family of zero inflated distributions. I used fitdist from fitdistrplus and several gamlss ZIP functions. Here is a descriptive stat of

[R] A problem subsetting a data frame

2012-11-26 Thread Aki Hoji
kage "Biobase"] > with 4 slots > .. .. ..@ varMetadata :'data.frame': 0 obs. of 1 variable: > .. .. .. ..$ labelDescription: logi(0) > .. .. ..@ data :'data.frame': 12625 obs. of 0 variables > .. .. ..@ dimLabels: chr [1:2] "