The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 89419
Line 5... Line 5...
5
 
5
 
6
\name{clip}
6
\name{clip}
7
\alias{clip}
7
\alias{clip}
8
\title{Set Clipping Region}
8
\title{Set Clipping Region}
9
\description{
9
\description{
10
  Set clipping region in user coordinates
10
  Set clipping region in user coordinates.
11
}
11
}
12
\usage{
12
\usage{
13
clip(x1, x2, y1, y2)
13
clip(x1, x2, y1, y2)
14
}
14
}
15
\arguments{
15
\arguments{
Line 31... Line 31...
31
  reset it if \code{\link{par}("xpd")} has been changed.  However,
31
  reset it if \code{\link{par}("xpd")} has been changed.  However,
32
  functions such as \code{\link{box}}, \code{\link{mtext}},
32
  functions such as \code{\link{box}}, \code{\link{mtext}},
33
  \code{\link{title}} and \code{\link{plot.dendrogram}} can manipulate
33
  \code{\link{title}} and \code{\link{plot.dendrogram}} can manipulate
34
  the \code{xpd} setting.
34
  the \code{xpd} setting.
35
}
35
}
-
 
36
\value{
-
 
37
  Invisible \code{NULL}.
-
 
38
}
36
\seealso{
39
\seealso{
37
  \code{\link{par}}
40
  \code{\link{par}}
38
}
41
}
39
\examples{
42
\examples{
40
x <- rnorm(1000)
43
x <- rnorm(1000)
Line 45... Line 48...
45
clip(2, usr[2], usr[3], usr[4])
48
clip(2, usr[2], usr[3], usr[4])
46
hist(x, col = 'blue', add = TRUE)
49
hist(x, col = 'blue', add = TRUE)
47
do.call("clip", as.list(usr))  # reset to plot region
50
do.call("clip", as.list(usr))  # reset to plot region
48
}
51
}
49
\keyword{dplot}
52
\keyword{dplot}
-
 
53
\keyword{iplot}