| plot_graph | R Documentation | 
Plot an admixture graph
plot_graph(
  graph,
  fix = NULL,
  title = "",
  color = TRUE,
  textsize = 2.5,
  highlight_unidentifiable = FALSE,
  pos = NULL,
  dates = NULL,
  neff = NULL,
  scale_y = FALSE,
  hide_weights = FALSE
)
graph | 
 An admixture graph. If it's an edge list with a   | 
fix | 
 If   | 
title | 
 A plot title  | 
color | 
 Plot it in color or greyscale  | 
textsize | 
 Size of edge and node labels  | 
highlight_unidentifiable | 
 Highlight unidentifiable edges in red. Can be slow for large graphs. See   | 
pos | 
 An optional data frame with node coordinates (columns   | 
dates | 
 An optional named vector with dates (in generations) for each node to plot dates on the y-axis (e.g.,   | 
neff | 
 An optional named vector with effective population sizes for each population (e.g.,   | 
scale_y | 
 If   | 
hide_weights | 
 A boolean value specifying if the drift values on the edges will be hidden. The default is   | 
A ggplot object
plot_graph(example_graph)
# Plot a random simulation output. Show dates and population sizes on the plot
out = random_sim(nleaf=5, nadmix=1)
plot_graph(out$edges, dates=out$dates, neff=out$neff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.