| Line 7... |
Line 7... |
| 7 |
\alias{deviceLoc}
|
7 |
\alias{deviceLoc}
|
| 8 |
\alias{deviceDim}
|
8 |
\alias{deviceDim}
|
| 9 |
\title{ Convert Viewport Location to Device Location }
|
9 |
\title{ Convert Viewport Location to Device Location }
|
| 10 |
\description{
|
10 |
\description{
|
| 11 |
These functions take a pair of unit objects and convert
|
11 |
These functions take a pair of unit objects and convert
|
| 12 |
them to a pair of device locations (or dimensions) in inches.
|
12 |
them to a pair of device locations (or dimensions) in inches
|
| - |
|
13 |
(or native device coordinates).
|
| 13 |
}
|
14 |
}
|
| 14 |
\usage{
|
15 |
\usage{
|
| 15 |
deviceLoc(x, y, valueOnly = FALSE)
|
16 |
deviceLoc(x, y, valueOnly = FALSE, device = FALSE)
|
| 16 |
deviceDim(w, h, valueOnly = FALSE)
|
17 |
deviceDim(w, h, valueOnly = FALSE, device = FALSE)
|
| 17 |
}
|
18 |
}
|
| 18 |
\arguments{
|
19 |
\arguments{
|
| 19 |
\item{x, y, w, h}{ A unit object. }
|
20 |
\item{x, y, w, h}{ A unit object. }
|
| 20 |
\item{valueOnly}{ A logical indicating. If \code{TRUE} then
|
21 |
\item{valueOnly}{ A logical indicating. If \code{TRUE} then
|
| 21 |
the function does not return a unit object, but rather only the
|
22 |
the function does not return a unit object, but rather only the
|
| 22 |
converted numeric values. }
|
23 |
converted numeric values. }
|
| - |
|
24 |
\item{device}{ A logical indicating whether the returned values should
|
| - |
|
25 |
be in inches or native device units. }
|
| 23 |
}
|
26 |
}
|
| 24 |
\details{
|
27 |
\details{
|
| 25 |
These functions differ from the functions like \code{convertX()}
|
28 |
These functions differ from the functions like \code{convertX()}
|
| 26 |
because they convert from the coordinate systems within a viewport
|
29 |
because they convert from the coordinate systems within a viewport
|
| 27 |
to inches on the device (i.e., from one viewport to another) and
|
30 |
to inches on the device (i.e., from one viewport to another) and
|