[R] how to add 3d-points to bplot {rms} figure?

David Winsemius dwinsemius at comcast.net
Fri Apr 13 13:45:34 CEST 2012


On Apr 12, 2012, at 6:09 PM, phi771 wrote:

> h! thank you a lot for your effort and help.
> i preferred a 3d view of the surface in order to see how well it  
> fits the
> real data (from the file). i will play around with the functions you  
> have
> mentioned and post my results or further problems. this will  
> probably take a
> few days :(
>
> can anybody answer if i can "extract" the mesh in x,y,z coordinates  
> from the
> bplot?

With the example you offered (but failed to include as context):

You need to learn to use str()

str(bpl)
# output too long
 > str(bpl$panel.args.common] )
# output still too long

 > str(bpl$panel.args.common[c("x","y","z")] )
List of 3
  $ x: num [1:40000] -2.44 -2.44 -2.43 -2.42 -2.41 ...
  $ y: num [1:40000] -0.196 -0.196 -0.196 -0.196 -0.196 ...
  $ z: num [1:40000] 107 106 106 105 104 ...

>


-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list