I’m using scatter3d and the 3 axes just have two endpoint values. how can I get labels throughout the entire axis, just like the normal plot() function does?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oh well. I took it as a challenge.
Obviously you need to:
Copy the
car:::scatter3d.defaultcode and paste it back, assigning it toscatter3d.default.Add these lines early in the code for
scatter3d.default:Then in the code block following the second
if(axis.scales){ ...}, substitute this code:(You may need to replace the code for
scatter3d.formulaso that doesn’t look in thecarNAMESPACE for the routinely dispatchedscattermethod. I simply replaced thescatter3dcall insidecar:::scatter3d.formulawith “scatter3d.default” so the interpreter would first look at the newly defined function.)Edit: a better method than mucking with
scatter3d.formulais to assign thecarnamespace/environment to the new function with this code:Then if you do this:
You get this (taken with a screenshot program)
