File: rglplot.Rd

package info (click to toggle)
r-cran-igraph 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,044 kB
  • sloc: ansic: 204,981; cpp: 21,711; fortran: 4,090; yacc: 1,229; lex: 519; sh: 52; makefile: 8
file content (49 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{rglplot}
\alias{rglplot}
\alias{rglplot.igraph}
\title{3D plotting of graphs with OpenGL}
\usage{
rglplot(x, ...)
}
\arguments{
\item{x}{The graph to plot.}

\item{\dots}{Additional arguments, see \link{igraph.plotting} for the
details}
}
\value{
\code{NULL}, invisibly.
}
\description{
Using the \code{rgl} package, \code{rglplot()} plots a graph in 3D. The plot
can be zoomed, rotated, shifted, etc. but the coordinates of the vertices is
fixed.
}
\details{
Note that \code{rglplot()} is considered to be highly experimental. It is not
very useful either. See \link{igraph.plotting} for the possible
arguments.
}
\examples{

g <- make_lattice(c(5, 5, 5))
coords <- layout_with_fr(g, dim = 3)
if (interactive() && requireNamespace("rgl", quietly = TRUE)) {
  rglplot(g, layout = coords)
}

}
\seealso{
\link{igraph.plotting}, \code{\link[=plot.igraph]{plot.igraph()}} for the 2D
version, \code{\link[=tkplot]{tkplot()}} for interactive graph drawing in 2D.

Other plot: 
\code{\link{plot.igraph}()}
}
\author{
Gabor Csardi \email{csardi.gabor@gmail.com}
}
\concept{plot}
\keyword{graphs}