Learn R Programming

seedy (version 1.3)

withinhost: Within-host genomic data

Description

Simulated within-host bacterial genomic samples.

Usage

withinhost

Arguments

format

Two bacterial samples were taken every 2000 generations up to time 10000.

Examples

Run this code
data(withinhost)
Gmat <- gd(withinhost$obs.strain, withinhost$libr, withinhost$nuc, 
           withinhost$librstrains)

colvec <- rainbow(1200)[1:1000] # Color palette
coltext <- rep("black", length(colvec)) # Corresponding text colors
coltext[680:970] <- "white" # White text for darker background colours

plotdistmat(Gmat, colvec, coltext, pos="bottomleft", labels=NULL, numbers=TRUE)

Run the code above in your browser using DataLab