[R] using mapply to avoid loops

2009-10-13 Thread Stephen Samaha
Hello, I would like to use mapply to avoid using a loop but for some reason, I can't seem to get it to work. I've included copies of my code below. The first set of code uses a loop (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error

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

2009-06-12 Thread Stephen Samaha
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