plot_panel_twisst plots the topolgy weighting panel of a selected outlier window

plot_panel_twisst(
  loc = "bel",
  lg,
  start,
  end,
  window_size = twisst_size,
  neighbours,
  xlab = TRUE,
  highlight_mode,
  data_tables,
  ...
)

Arguments

loc

sample location (bel [Belize]/ hon [Honduras]/ pan [Panama])

lg

string, linkage group (eg. "LG08")

start

numeric, start position of window (bp)

end

numeric, end position of window (bp)

window_size

numeric, window size for twisst panels (n SNPS)

neighbours

topology highlight grouping

xlab

logical, should x axis labels be plotted?

highlight_mode

string, topology highlight mode ("pair", "isolation")

data_tables

list with twisst results

...

catch-all parameter to allow excessive parameters through purrr::pmap

Details

The topology weighting data for the selected location and LG is fetched. Then the number of possible topolgies is determined based on the location and all topolgies are imported. Dependend on th highlighting mode (pair/ isolation), the topologies of interest are determined. The topologies of interest are labelled in the dataset and the color scheme for the highlighting is created.

Finally, the topologie weighting panel is plotted.

See also