jam_igraph_arrows | R Documentation |
Render igraph arrows
jam_igraph_arrows(
x1,
y1,
x2,
y2,
code = 2,
size = 1,
width = 1,
open = TRUE,
sh.adj = 0.1,
sh.lwd = 1,
sh.col = if (is.R()) par("fg") else 1,
sh.lty = 1,
h.col = sh.col,
h.col.bo = sh.col,
h.lwd = sh.lwd,
h.lty = sh.lty,
arrows_only = FALSE,
curved = FALSE,
verbose = FALSE
)
x1 , y1 , x2 , y2 |
|
code |
|
size |
|
width |
|
open |
|
sh.adj |
|
sh.lwd |
|
sh.col |
|
sh.lty |
|
h.col , h.col.bo |
|
h.lwd |
|
h.lty |
|
arrows_only |
|
curved |
|
verbose |
|
This function is a mimic of the internal igraph:::igraph.Arrows()
which is not permitted to be called directly for CRAN-approved
R packages.
Other jam igraph internal functions:
default_igraph_values()
,
get_igraph_arrow_mode()
,
parse_igraph_plot_params()
plot(NULL, xlim=c(-3, 3), ylim=c(-4, 4), type="n", xlab="", ylab="", bty="n")
jam_igraph_arrows(-2, 3, 2, 3, code=1, open=FALSE, sh.col="blue", sh.lwd=2)
jam_igraph_arrows(-2, 2, 2, 2, code=2, open=FALSE, sh.col="red", sh.lwd=2)
jam_igraph_arrows(-2, 1, 2, 1, code=3, open=FALSE, sh.col="gold", sh.lwd=2)
jam_igraph_arrows(-2, 0, 2, 0, code=3, arrows_only=TRUE, open=FALSE, sh.col="purple4", sh.lwd=2)
jam_igraph_arrows(-2, -1, 2, -1, code=1, open=FALSE, sh.col="blue", h.col="#FF000055", sh.lwd=2, size=2, sh.adj=0.1)
jam_igraph_arrows(-2, -2, 2, -2, code=1, open=FALSE, sh.col="blue", h.col="#FF000055", sh.lwd=2, size=2, sh.adj=1.1)
jam_igraph_arrows(-2, -3, 2, -3, code=2, open=FALSE, sh.col="blue", h.col="#FF000055", sh.lwd=2, size=2, sh.adj=1.1)
jam_igraph_arrows(-2, -4, 2, -4, code=3, open=FALSE, sh.col="blue", h.col="#FF000055", sh.lwd=2, size=2, sh.adj=1.1)
text(x=rep(0, 8), y=seq(from=3, to=-4)+0.2,
labels=c("code=1",
"code=2",
"code=3",
"code=3, arrows_only=TRUE",
"code=1, size=2, sh.adj=0.1",
"code=1, size=2, sh.adj=1.1",
"code=2, size=2, sh.adj=1.1",
"code=3, size=2, sh.adj=1.1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.