Skip to content
Prev 76246 / 398502 Next

How to add values on the axes of the 3D bi-variable lrm fit?

I have not seen a reply to this, so I will offer a few comments.

	  1.  I haven't used "lrm", but I assume you are referring to the copy 
in the "Design" package;  I surmised that from reviewing 
RSiteSearch("lrm").

	  2.  I installed "Design" and learned that I also needed "Hmisc, so I 
installed that also.  The example you provided was not complete in 
itself, so that presented another obstacle to helping you.  I therefore 
worked through examples with the documentation for "lrm", from which I 
learned that your "fit" was of class "Design".

	  3.  The led me to the documentation for "plot.Design".  The examples 
there included one that produced a perspective plot.

	  4.  I then read the documentation for "persp" and learned that it had 
an argument 'ticktype' with a nondefault value of "detailed", which 
should produce what you want.

	  5.  When I added 'ticktype="detailed"' to the call to "plot", I got 
an error message.  I then started reading the code for "plot.Design" and 
learned that it had an argument 'perspArgs'.  The documentation for 
"plot.Design" told me that was "a list containing other named arguments 
to be passed to 'persp'".  I tried that and it worked.

	  6.  In the future, I believe you can increase your chances of getting 
a useful reply quickly if you PLEASE do read and follow the posting 
guide! "http://www.R-project.org/posting-guide.html".

	  Best Wishes,
	  spencer graves
Jan Verbesselt wrote: