Title: | Function that Creates a Heat Map from Hybridization Data |
---|---|
Description: | Using hybrid data, this package created a vividly colored hybrid heat map. The input is two files which are auto-selected. The first file has three columns, the first two for pairs of species, with the third column for the hybrid experiment code (an integer). The second file is a list of code and their descriptions in two columns. The output is a figure showing the hybrid heat map with a color legend. |
Authors: | Matthew Cserhati |
Maintainer: | Matthew Cserhati <[email protected]> |
License: | GPL-3 |
Version: | 0.3.2 |
Built: | 2024-12-21 06:30:42 UTC |
Source: | CRAN |
R package which takes a list of hybridization results along with a code and creates a heat map.
Version 0.3.2 Author: Dr. Matthew Cserhati Email: [email protected] May 21, 2021
hybrid_data |
a data frame with three columns: species1, species2, code |
codes |
a data frame with two columns: code, description |
nil
Wood, T. C., and Murray, M. J. (2003) Understanding the Pattern of Life. Nashville, TN: Broadman & Holman.
V1 <- c("Phoca largha","Phoca largha","Phoca caspica") V2 <- c("Phoca vitulina","Phoca caspica","Pusa hispida") V3 <- c(2,3,3) hybrid_data <- data.frame(V1,V2,V3) C1 <- c(1,2,3) C2 <- c("No hybrid","Hybrid with same 3rd species","Documented hybrid") codes <- data.frame(C1,C2) hybridogram(hybrid_data, codes)
V1 <- c("Phoca largha","Phoca largha","Phoca caspica") V2 <- c("Phoca vitulina","Phoca caspica","Pusa hispida") V3 <- c(2,3,3) hybrid_data <- data.frame(V1,V2,V3) C1 <- c(1,2,3) C2 <- c("No hybrid","Hybrid with same 3rd species","Documented hybrid") codes <- data.frame(C1,C2) hybridogram(hybrid_data, codes)