[Rd] Interest in R plotting capabilities
Bill Simpson
wsi@gcal.ac.uk
Mon, 31 Jan 2000 10:16:05 +0000 (GMT)
>
> I had a few problems in some particular areas though... gnuplot
> can produce mesh plots of a 3D surface from regular grid samples in x,y,z
> coordintes. Does R have a package that does anything like that?
> Also, gnuplot supports both hidden-line mode (very slow but gets there)
> and non-hidden line mode.
try persp(). Here's an example:
x<-seq(1,3)
y<-seq(1,3)
z<-seq(1,9)
data<-data.frame(x,y,z) #or read dataframe from disk file
x<-unique(data$x)
y<-unique(data$y)
z<-matrix(data$z,length(y),length(x))
image(x,y,z, col=gray(0:19/19),xlab="x", ylab="y")
contour(x,y,z,xlab="x", ylab="y")
persp(x,y,z, col="gray")
> Another thing gnuplot can do is generate 2D contours from regular
> grid samples of a 3D function. Is there any contour generation system
> for R?
contour() also filled.contour()
see above.
Bill
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._