File: perspx.Rd

package info (click to toggle)
r-cran-plotrix 3.8-1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,580 kB
  • sloc: makefile: 6
file content (29 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\name{perspx}
\alias{perspx}
\title{ Display perspective plot }
\description{
 Display an enhanced perspective plot with additional return values
}
\usage{
 perspx(x,y,z,...)
}
\arguments{
  \item{x,y,z}{ x, y and z coordinates to plot. }
  \item{...}{ Other arguments passed to \samp{persp}. }
}
\details{
 Displays \samp{z} values plotted on an x,y grid.
}
\value{
  A list with three elements, the ranges of \samp{x}, \samp{y} and \samp{z}.
}
\author{Ben Bolker}
\examples{
 x <- 1:10
 y <- 1:10
 z <- outer(x,y,function(x,y) { 3*sin(2*pi*x)/(2*pi*x)+exp(y/10)+(x*y)/1000 })
 par(mar=c(5,10,2,2))
 pp <- perspx(x,y,z,ticktype="detailed",phi=30,theta=80,nticks=3,r=10,
  axes=FALSE)
}
\keyword{misc}