Description Usage Arguments Examples
This guide is intended to show the direction of edges based on the aesthetics mapped to its progression, such as changing width, colour and opacity.
1 2 3 4 5 |
title |
A character string or expression indicating a title of guide.
If |
title.position |
A character string indicating the position of a title. One of "top" (default for a vertical guide), "bottom", "left" (default for a horizontal guide), or "right." |
title.theme |
A theme object for rendering the title text. Usually the
object of |
title.hjust |
A number specifying horizontal justification of the title text. |
title.vjust |
A number specifying vertical justification of the title text. |
arrow |
Logical. Should an arrow be drawn to illustrate the direction.
Defaults to |
arrow.position |
The position of the arrow relative to the example edge. |
barwidth |
A numeric or a |
barheight |
A numeric or a |
nbin |
A numeric specifying the number of bins for drawing colorbar. A smoother colorbar for a larger value. |
direction |
A character string indicating the direction of the guide. One of "horizontal" or "vertical." |
default.unit |
A character string indicating |
reverse |
logical. If |
order |
positive integer less that 99 that specifies the order of this guide among multiple guides. This controls the order in which multiple guides are displayed, not the contents of the guide itself. If 0 (default), the order is determined by a secret algorithm. |
... |
ignored. |
1 2 3 4 | gr <- igraph::graph_from_data_frame(highschool)
ggraph(gr, layout = 'kk') +
geom_edge_fan(aes(alpha = ..index..)) +
guides(edge_alpha = guide_edge_direction())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.