From: Lakshmi Dhevi Baskar <lavanya_ldb2000_at_yahoo.co.in>

Date: Thu 17 Mar 2005 - 06:01:14 EST

persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", xlab ="fluidlevel", ylab ="time", zlab = "probability",xlim=range(x),ylim=range(y))

now i converted to matrix as "z"

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Mar 17 06:04:52 2005

Date: Thu 17 Mar 2005 - 06:01:14 EST

Dear All,

I am very new to R projects.i would like to get some help regarding the graph construction using persp. May be i am wrong in some steps.I have given the commands which i tried for drawing 3d surface using persp.I would like to label the axes using the scales.

z <- array(topnew2$V2, dim=c(600,2)) x <- 10 * (1:nrow(z)) y <- (1:ncol(z))

persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", xlab ="fluidlevel", ylab ="time", zlab = "probability",xlim=range(x),ylim=range(y))

I have a text file of format:

V1 V2 V3 1 1 0 10 2 1 0 20 3 1 0 30 4 1 0 40 5 1 0 50 ..................

now i converted to matrix as "z"

z:............

[,1] [,2]

[1,] 0 0

* [2,] 0 0
** [3,] 0 0
** [4,] 0 0
** [5,] 0 0
** [6,] 0 0
** [7,] 0 0
** [8,] 0 0
*

...................

i need to label x axis with scale from 10 to 6000 with length of 10
and y axis with 1 and 2

and z from 0 to 1(probabilty)

kindly guide me...(may be i have misunderstood some concepts )...

thanks in advance for the help and patience

[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Mar 17 06:04:52 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:30:50 EST
*