[R] formatting numbers along axes as percents for perspective plot

David Winsemius dwinsemius at comcast.net
Sat Jun 13 13:26:27 CEST 2009


Further option would be scatterplot3d  in {scatterplot3d} which does  
provide facility for sending a vector of axis labels to the x,y, and z  
axes.

David
On Jun 12, 2009, at 10:48 PM, Stephen Samaha wrote:

> Hi, that's what I did for the time being. Ideally, I'd like to have  
> the % sign after the numbers though. It's not a problem to format a  
> regular 2D plot with percents but I still can't figure it out with  
> the persp function.
>
> Steve
>
> --- On Fri, 6/12/09, David Winsemius <dwinsemius at comcast.net> wrote:
>
> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] formatting numbers along axes as percents for  
> perspective plot
> To: "Stephen Samaha" <ssamaha2002 at yahoo.com>
> Cc: r-help at r-project.org
> Date: Friday, June 12, 2009, 7:29 PM
>
> Have you considered multiplying all values by 100?
>
>
> On Jun 12, 2009, at 7:56 PM, Stephen Samaha wrote:
>
> > Hello, I'm producing a 3D plot using the persp function. All my  
> values for X, Y, and Z are decimals ranging from 0 to 1. I'd like to  
> be able format the three axes so that the tick values are 0% 20%  
> 40%, etc... instead of just being 0 .2 .4. Does anyone know how to  
> do this?
> >
> > Many thanks,
> >
> > Steve
-- 
David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list