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, ... )
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 |
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.
Other Figure 5:
ax_scl()
,
cross_spec()
,
custom_annoplot()
,
dist_tibble()
,
distances_tree()
,
get_clr()
,
get_dist()
,
get_gxp_long()
,
get_isolated_topos()
,
get_neighbour_topos()
,
is_isolated()
,
min_dist()
,
no_title()
,
plot_curtain()
,
plot_fish_zoom()
,
plot_fst_poptree()
,
plot_leg()
,
plot_panel_anno()
,
plot_panel_delta_dxy()
,
plot_panel_dxy()
,
plot_panel_fst()
,
plot_panel_gxp()
,
prep_data()
,
theme_panels()