visualization

Plot one-liner generated data with gnuplot

In this post, I’ll demonstrate how to use gnuplot in a one-liner. We’ll use the pipe but unfortunately you cannot pipe raw data to gnuplot directly (as far as I know). The piped data should contain basic gnuplot commands on top. So, we’ll use the following template: very-complicated-data-generating-commands | sed -e "1i\plot '-' " | gnuplot -persist If you’re interested in quickly see how this works, try something simple:

gnuplot boxerror, barchart with error bars

When I was trying to generate an image containing scatter-plot and a barchart with error bars, I got stuck with barchart part. There were no demos or samples that produces the desired output. So, I ended up figuring it out myself. Below is the gnuplot code, data sample and the output. set term png size 500,400 set output "boxerror-test.png" set boxwidth 0.5 set style fill transparent solid 0.5 noborder set yrange [0:100] set xrange [0:5] plot "boxerror-test.

Visualize Circos images with Seadragon

Circos is a very powerful tool to visualize different types of data (expression, homology, etc) in circular fashion. The software is capable of producing very large images if desired, suitable for posters. Actually, we can create large images for viewing online, since it’s trivial to view them with Seadragon. Below is an example from Circos tutorial (I modified the config file to obtain large image) (*EDIT: Since the seadragon page was very slow to respond, I just included the embed URL*S)

View large images with Seadragon in personal pages

Maybe you already watched the video regarding Seadragon given at TED (sorry only low resolution version was available) I just discovered that you can embed Seadragon into your own page. If you want to embed an image with enormous size, go to Seadragon page and paste URL of the image and it will create html embed script which you insert into your page’s html code. Below is the Seadragon view of space image of world at night: (*EDIT: Since the seadragon page was very slow to respond, I just included the embed URL*S)