Skip to content
Prev 325983 / 398502 Next

Correct scaling of axis in persp3d plot

I uploaded the data here: http://uploadeasy.net/upload/p4d81.rar

As I said, I know my color example is wrong, that's why I am looking for a correct solution,
also, I would be interested in how I can get a better axis, as I described the problem.

Thanks a lot for your help,
Ivanov




----- Urspr?ngliche Message -----
Von: David Winsemius <dwinsemius at comcast.net>
An: Ivanov Ruporvrich <ivanovruporvrich at yahoo.com>
CC: "r-help at r-project.org" <r-help at r-project.org>
Gesendet: 0:23 Mittwoch, 26.Juni 2013
Betreff: Re: [R] Correct scaling of axis in persp3d plot
On Jun 25, 2013, at 12:40 PM, Ivanov Ruporvrich wrote:

            
You may have attached it ... but you probably didn't read the information about what would be accepted by the mail server. Read the listinfo page linked at the bottom of every posting to Rhelp.
Missing <CR>'s added to note that 'modelfit' was never created by the code posted to R-help.
Missing carriage returns are probably inhibiting people from reading this.
If you wanted a transition from red to green, then why use those values that go from pale red to dark red? Shouldn't it be:

mycols <- colorRampPalette( c("#ff0000", "#00ff00") ) 

Or:

mycols <- colorRampPalette( c("#00ff00", "#ff0000") )
That looks wrong. Appears you are using code from the example in ?persp rather than using the z values appropriate to persp3d.
David Winsemius
Alameda, CA, USA