View source: R/space.mix.MCMC.R
query.spacemix.map | R Documentation |
This function highlights the geogenetic locations and admixture
source locations for a subset of the samples in a geogenetic map
generated from a SpaceMix analysis. Users can specify the names of the
samples to be highlighted, as well as whether they wish to visualize the
sources of admixture for those samples. This function should be called
after a a geogenetic map has already been plotted using
make.spacemix.map
query.spacemix.map(focal.pops, spacemix.map.list, ellipses = TRUE, source.option = TRUE)
focal.pops |
This is a character vector specifying the names of the samples to be highlighted on the existing SpaceMix map. |
spacemix.map.list |
This is the name of the list produced using the function
|
ellipses |
This option ( |
source.option |
This option ( |
This function highlights the geogenetic locations and admixture source locations for a specified subset of samples. The return value of this function is invisible.
#load example spacemix.map.list object data(example.spacemix.map.list) #make SpaceMix output map # without plotting admixture sources, and without sample names plotted make.spacemix.map(example.spacemix.map.list,source=FALSE,text=FALSE) #highlight two samples, without their admixture sources query.spacemix.map(focal.pops=c("Sample_9","Sample_23"), spacemix.map.list = example.spacemix.map.list, ellipses=TRUE,source.option=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.