The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 10... Line 10...
10
  \bold{This function is deprecated in grid version 0.8 and will be
10
  \bold{This function is deprecated in grid version 0.8 and will be
11
    made defunct in grid version 1.9}
11
    made defunct in grid version 1.9}
12
 
12
 
13
  You should use the \code{convertUnit()} function or one of its
13
  You should use the \code{convertUnit()} function or one of its
14
  close allies instead.
14
  close allies instead.
15
  
15
 
16
  This function returns a numeric vector containing the specified
16
  This function returns a numeric vector containing the specified
17
  x or y locations or dimensions, converted to "user" or "data"
17
  x or y locations or dimensions, converted to "user" or "data"
18
  units, relative to the current viewport.
18
  units, relative to the current viewport.
19
}
19
}
20
\usage{
20
\usage{
Line 28... Line 28...
28
\value{
28
\value{
29
  A numeric vector.
29
  A numeric vector.
30
}
30
}
31
\author{ Paul Murrell }
31
\author{ Paul Murrell }
32
\section{WARNING }{ If you draw objects based on output from these conversion
32
\section{WARNING }{ If you draw objects based on output from these conversion
33
    functions, then resize your device, the objects will be drawn 
33
    functions, then resize your device, the objects will be drawn
34
    incorrectly -- the base R display list will not recalculate these
34
    incorrectly -- the base R display list will not recalculate these
35
    conversions.  This means that you can only rely on the results of 
35
    conversions.  This means that you can only rely on the results of
36
    these calculations if the size of your device is fixed.} 
36
    these calculations if the size of your device is fixed.}
37
\seealso{ \code{\link{grid.convert}}, \code{\link{unit}} }
37
\seealso{ \code{\link{grid.convert}}, \code{\link{unit}} }
38
 
38
 
39
\examples{
39
\examples{
40
grid.newpage()
40
grid.newpage()
41
pushViewport(viewport(width=unit(.5, "npc"),
41
pushViewport(viewport(width=unit(.5, "npc"),