The R Project SVN R

Rev

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

Rev 84534 Rev 86168
Line 1... Line 1...
1
% File src/library/grid/man/arrow.Rd
1
% File src/library/grid/man/arrow.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2024 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{arrow}
6
\name{arrow}
7
\alias{arrow}
7
\alias{arrow}
8
\title{ Describe arrows to add to a line }
8
\title{ Describe arrows to add to a line }
9
\description{
9
\description{
10
  Produces a description of what arrows to add to a line.
10
  Produces a description of what arrows to add to a line.
11
  The result can be passed to a function that draws a line,
11
  The result can be passed to a function that draws a line,
12
  e.g., \code{grid.lines}.
12
  e.g., \code{\link{grid.lines}}.
13
}
13
}
14
\usage{
14
\usage{
15
arrow(angle = 30, length = unit(0.25, "inches"),
15
arrow(angle = 30, length = unit(0.25, "inches"),
16
      ends = "last", type = "open")
16
      ends = "last", type = "open")
17
}
17
}
Line 26... Line 26...
26
  \item{type}{One of \code{"open"} or \code{"closed"} indicating
26
  \item{type}{One of \code{"open"} or \code{"closed"} indicating
27
    whether the arrow head should be a closed triangle.}
27
    whether the arrow head should be a closed triangle.}
28
}
28
}
29
\examples{
29
\examples{
30
arrow()
30
arrow()
-
 
31
str(arrow(type = "closed"), give.attr=FALSE)
31
}
32
}
32
\keyword{dplot}
33
\keyword{dplot}