View source: R/pos_branching.R
pos_branching | R Documentation |
Title
pos_branching( x0 = 0, y0 = 0, n = 5, ncol = 3, width = 2 * sqrt(0.75), height = width * 0.75/sqrt(0.75) )
x0 |
numeric x start position |
y0 |
numeric y start position |
n |
number of positions |
width |
numeric, width between positions |
height |
numeric, height between positions |
# first example pos_branching() ggcanvas() + stamp_point(xy = pos_branching()) + stamp_polygon(x0y0 = pos_branching(n = 15, ncol = 4), alpha = .5) + stamp_label(label = 1:15, xy = pos_branching(n = 15, ncol = 4)) + stamp_polygon(n = 4, x0y0 = pos_branching(n = 15, ncol = 4)[15,], fill = "magenta", alpha = .4, radius = sqrt(.75)) # get coords for single position pos_branching(n = 15)[15,] pos_branching(n = 15)[1:4,]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.