Is there a way to get the axes labels for a persp() plot to show the actual values employed? ticktype='detailed' only shows a scale from 0 to 1. My values are (for example) y in 0.2-0.7, x in 450-560 and I would like to suppress the z labels. How can I get the x and y values to appear on the plot? R-2.3.1, Windows XP Home. Best wishes John John Logsdon "Try to make things as simple Quantex Research Ltd, Manchester UK as possible but not simpler" j.logsdon at quantex-research.com a.einstein at relativity.org +44(0)161 445 4951/G:+44(0)7717758675 www.quantex-research.com
On 9/28/2006 6:40 AM, John Logsdon wrote:> Is there a way to get the axes labels for a persp() plot to show the > actual values employed? ticktype='detailed' only shows a scale from 0 to > 1. My values are (for example) y in 0.2-0.7, x in 450-560 and I would > like to suppress the z labels. > > How can I get the x and y values to appear on the plot?You could try persp3d in the rgl package; it has more flexibility about labels (but not as much as most R graphics: you can't change fonts, for instance). Duncan Murdoch
>>>>> "John" == John Logsdon <j.logsdon at quantex-research.com> >>>>> on Thu, 28 Sep 2006 11:40:10 +0100 (GMT) writes:John> Is there a way to get the axes labels for a persp() John> plot to show the actual values employed? John> ticktype='detailed' only shows a scale from 0 to 1. that's not true. John> My values are (for example) y in 0.2-0.7, x in 450-560 John> and I would like to suppress the z labels. John> How can I get the x and y values to appear on the John> plot? and what does the posting guide say ??? The 3rd (I think) plot in demo(persp) shows axes where none of the value ranges are "from 0 to 1". Martin [.........] >>> PLEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, >>> reproducible code. Please do!