File: gplot1.Rd

package info (click to toggle)
r-cran-blockmodeling 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 2,024; f90: 952; sh: 13; makefile: 5
file content (79 lines) | stat: -rw-r--r-- 2,559 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gplot.R
\name{gplot1}
\alias{gplot1}
\alias{gplot2}
\title{A wrapper for function  gplot - Two-Dimensional Visualization of Graphs}
\usage{
gplot1(
  M,
  diag = TRUE,
  displaylabels = TRUE,
  boxed.labels = FALSE,
  loop.cex = 4,
  edge.lwd = 1,
  edge.col = "default",
  rel.thresh = 0.05,
  ...
)

gplot2(
  M,
  uselen = TRUE,
  usecurve = TRUE,
  edge.len = 0.001,
  diag = TRUE,
  displaylabels = TRUE,
  boxed.labels = FALSE,
  loop.cex = 4,
  arrowhead.cex = 2.5,
  edge.lwd = 1,
  edge.col = "default",
  rel.thresh = 0.05,
  ...
)
}
\arguments{
\item{M}{A matrix (array) of a graph or set thereof.  This data may be valued.}

\item{diag}{Boolean indicating whether or not the diagonal should be treated as valid data
Set this \code{TRUE} if and only if the data can contain loops.  \code{diag} is \code{FALSE} by default.}

\item{displaylabels}{Boolean; should vertex labels be displayed.}

\item{boxed.labels}{Boolean; place vertex labels within boxes.}

\item{loop.cex}{An expansion factor for loops; may be given as a vector, if loops are to be of different sizes.}

\item{edge.lwd}{Line width scale for edges; if set greater than 0, edge widths are scaled by \code{edge.lwd*dat}.
May be given as a vector or adjacency matrix, if edges are to have different line widths.}

\item{edge.col}{Color for edges; may be given as a vector or adjacency matrix, if edges are to be of different colors.}

\item{rel.thresh}{Real number indicating the lower relative (compared to the highest value) threshold for tie values.
Only ties of value \code{thresh} are displayed.  By default, \code{thresh = 0}.}

\item{\dots}{Additional arguments to \code{\link{plot}} or \code{link{sna::gplot}}:\cr\cr
\bold{\code{mode}}:  the vertex placement algorithm; this must correspond to a \code{gplot.layout} function from package \code{sna}.}

\item{uselen}{Boolean; should we use \code{edge.len} to rescale edge lengths.}

\item{usecurve}{Boolean; should we use \code{edge.curve}.}

\item{edge.len}{If \code{uselen == TRUE}, curved edge lengths are scaled by \code{edge.len}.}

\item{arrowhead.cex}{An expansion factor for edge arrowheads.}
}
\value{
Plots a graph.
}
\description{
The function calls function \code{gplot} from the library \code{sna} with different defaults. Use fun for plotting image graphs.
}
\seealso{
\code{link{sna::gplot}}
}
\author{
\enc{Aleš Žiberna}{Ales Ziberna}
}
\keyword{graphs}