Gallery
Gallery

Wednesday, March 30, 2011

Interactive MDS plot of the Baltic region + Russia + Scandinavia


For those of you who don't mind getting a bit techy, starting today I'll be posting datasheets that can be turned into interactive genetic maps with just a couple of simple commands. Here's the first one, an MDS analysis of the Baltic region, Russia and Scandinavia. This is what you'll see after following the instructions below, except that you'll be able to spin the plot in any direction with your mouse.






First of all, you'll have to install Gnuplot on your machine. You can download the latest version of this application here. Unfortunately, I can't help individual users with the installation, but it's pretty easy, and I'm sure you guys can help each other if problems arise. Now, once you have Gnuplot, just open your command prompt window and type gnuplot. Go to Start > Command Prompt > type Gnuplot. This is what you should see...




Then drop the "Baltic.dat" sheet into your working directory (which is usually C:\Documents and Settings\Username), and type "splot 'Baltic.dat' using 3:4:5:1 with labels" just like on the screen cap below, and hit enter. Alternatively, put the Baltic.dat file into the "binary" Gnuplot folder, which you'll see after unzipping Gnuplot. Once the interactive terminal pops up, you'll be able to edit the viewing options by pressing the buttons in the top left corner. For example, hit "Apply autoscale" to resize the terminal to fit your screen.



No comments:

Post a Comment