R-lequin



R-lequin is a collection of R functions to parse a XML output file of ARLEQUIN version 3.12. R-lequin extracts data and produces graphics. R is an ideal programming language for parsing XML files and for graphic creation because it provides a lot of graphical techniques and a XML package containing tools for parsing and generating XML within R. The graphics should help to get an impression and to interpret the results produced by ARLEQUIN.
R-lequin is a tool to enhance the user friendliness and the readability of the ARLEQUIN output.

R code for graphics

Documentations:

lines:

matrix:

bar:

points:

XML:

Arlequin output file changes (HTML to XML)

Delete:

  • <html>, <head>, <style>, <body> and <PRE> tags
  • the space (&nbsp;) in the empty <A> tag or replace it with the space code: &#xAO;


Insert:

  • XML declaration on top of the output file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="..."?>
    
  • root tag
  • tags around titles and other text which should be specially formatted
  • tags around data (respectively around data which should be displayed with no special format)
  • specific tags around data which is needed to make graphics in R:
    • unique names for a special kind of data (the format of the data within this tag must always be the same)


  • no sample names/population names with wihte space, use '_' instead


example:

tutorials

links


Personal Tools