% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{network.edgelabel}
\alias{network.edgelabel}
\title{Plots a label corresponding to an edge in a network plot.}
\usage{
network.edgelabel(px0, py0, px1, py1, label, directed, loops = FALSE,
  cex, curve = 0, ...)
}
\arguments{
\item{px0}{vector of x coordinates of tail vertex of the edge}

\item{py0}{vector of y coordinates of tail vertex of the edge}

\item{px1}{vector of x coordinates of head vertex of the edge}

\item{py1}{vector of y coordinate of head vertex of the edge}

\item{label}{vector strings giving labels to be drawn for edge edge}

\item{directed}{logical: is the underlying network directed? If FALSE,
labels will be drawn in the middle of the line segment, otherwise in the
first 3rd so that the labels for edges pointing in the opposite direction
will not overlap.}

\item{loops}{logical: if true, assuming the labels to be drawn belong to
loop-type edges and render appropriately}

\item{cex}{numeric vector giving the text expansion factor for each label}

\item{curve}{numeric vector controling the extent of edge curvature (0 =
straight line edges)}

\item{\dots}{additional arguments to be passed to \code{\link{text}}}
}
\value{
no value is returned but text will be rendered on the active plot
}
\description{
Draws a text labels on (or adjacent to) the line segments connecting
vertices on a network plot.
}
\details{
Called internally by \code{\link{plot.network}} when \code{edge.label}
parameter is used. For directed, non-curved edges, the labels are shifted
towards the tail of the edge. Labels for curved edges are not shifted
because opposite-direction edges curve the opposite way.  Makes a crude
attempt to shift labels to either side of line, and to draw the edge labels
for self-loops near the vertex. No attempt is made to avoid overlap between
vertex and edge labels.
}
\author{
skyebend
}
