How to change points and add a regression to a cloudplot (using R)?

后端 未结 2 1659
旧巷少年郎
旧巷少年郎 2020-12-05 05:50

To make clear what I\'m asking I\'ve created an easy example. Step one is to create some data:

gender <- factor(rep(c(1, 2), c(43, 41)), levels = c(1, 2),         


        
2条回答
  •  独厮守ぢ
    2020-12-05 06:19

    There is nice fit visualization in car package using rgl package (openGL implementation):

    require(car)
    require(rgl)
    scatter3d(death~numberofdrugs+geneticvalue, groups=y$gender, data=y, parallel=FALSE)
    

    3d fit with car package

提交回复
热议问题