knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
species.clusteRs is an in-development package for performing clustering-based species delimitation on SNP data from natural populations.
You can install the development version from GitHub using the following code:
# install.packages("devtools") devtools::install_github("DevonDeRaad/species.clusteRs")
This is a basic example which shows you how to solve a common problem:
library(species.clusteRs) ## basic example code for unsupervised clustering using PCA for dimensionality reduction pcs<-cluster_pca(vcfR = species.clusteRs::vcfR.example, popmap = species.clusteRs::popmap)
#basic example code for using tsne for dimensionality rection tsne<-cluster_tsne(vcfR = species.clusteRs::vcfR.example, popmap = species.clusteRs::popmap)
#Does decreasing perplexity improve cluster discrimination? tsne<-cluster_tsne(vcfR = species.clusteRs::vcfR.example, popmap = species.clusteRs::popmap, perplexity = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.