File: click.Rd

package info (click to toggle)
r-cran-lava 1.7.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,636 kB
  • sloc: sh: 13; makefile: 2
file content (63 lines) | stat: -rw-r--r-- 1,525 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interactive.R
\name{click}
\alias{click}
\alias{idplot}
\alias{click.default}
\alias{colsel}
\title{Identify points on plot}
\usage{
\method{click}{default}(x, y=NULL, label=TRUE, n=length(x), pch=19, col="orange", cex=3, ...)
idplot(x, y ,..., id=list(), return.data=FALSE)
}
\arguments{
\item{x}{X coordinates}

\item{\dots}{Additional arguments parsed to \code{plot} function}

\item{y}{Y coordinates}

\item{label}{Should labels be added?}

\item{n}{Max number of inputs to expect}

\item{pch}{Symbol}

\item{col}{Colour}

\item{cex}{Size}

\item{id}{List of arguments parsed to \code{click} function}

\item{return.data}{Boolean indicating if selected points should be returned}
}
\description{
Extension of the \code{identify} function
}
\details{
For the usual 'X11' device the identification process is
terminated by pressing any mouse button other than the first. For
the 'quartz' device the process is terminated by pressing either
the pop-up menu equivalent (usually second mouse button or
'Ctrl'-click) or the 'ESC' key.
}
\examples{
if (interactive()) {
    n <- 10; x <- seq(n); y <- runif(n)
    plot(y ~ x); click(x,y)

    data(iris)
    l <- lm(Sepal.Length ~ Sepal.Width*Species,iris)
    res <- plotConf(l,var2="Species")## ylim=c(6,8), xlim=c(2.5,3.3))
    with(res, click(x,y))

    with(iris, idplot(Sepal.Length,Petal.Length))
}
}
\seealso{
\code{\link{idplot}}, \code{identify}
}
\author{
Klaus K. Holst
}
\keyword{iplot}