LingPy

Data Plotting (plot)

The Module provides different functions for the transformation of text data into a visually appealing format.

The main idea is to render alignments in colored tables where the colors of the cells are chosen with respect to the sound-class of the sound value of each given cell, such as in the following example:

../_images/colored_alignment.jpg

Here, the coloring of sounds follows the sound-class model of Dolgopolsky1986, the black margin around the cells in the second, the third, and the fourth column indicates a swapped site. The benefit of this way to display alignments is that differences and similarities between the sequences become visible at once, making it easy to check the correctness of a given alignment analysis.

Plotting Alignments

msa2html(infile[, shorttitle, filename]) Convert files in msa-format into colored html-format.

Plotting Lexicostatistic Wordlists

alm2html(infile[, title, shorttitle]) Convert files in alm-format into colored html-format.

Table Of Contents