Posts tagged with graphs

The Ph in a Bioinformatics PhD

August 28th, 2007

Crumpled paper

In a month, I start the third and final year of my PhD. Usually it’s around this time that students begin thinking about what’s gone before and contemplate the future, and I’m never one to buck a trend.

Read more »

Deriving biological meaning from principal components analysis

August 1st, 2007

Back from Madrid. I spent three weeks there on an excellent data analysis course, which I would recommend. Not only did I learn valuable techniques, I also got the chance to spend my evenings by the pool or in Sol eating tapas - which explains the lack of posts this July. I offer this brief tutorial in recompense, continuing the theme of data analysis.

Read more »

Using graphs in presentations and keeping your message simple

March 12th, 2007

A post at Presentation Zen discusses keeping the signal-to-noise ratio in presentations as low as possible. Definitely worth a look, the point is to keep your slides uncluttered (noise) so that the audience can focus on your message (signal).

As an example of this I recently gave a presentation to illustrate hierarchical regulation. I gave the talk to a non bioinformatics audience so therefore I was trying to present using a simple and straight forward manner. The slides included a couple of graphs, and since I’ve mentioned graphs in presentations previously I thought I’d include a few slides here. The presentation might appear minimal, but I was also speaking at the same time.

page 1
page 2
page 3
page 4
page 5
page 6
page 7
page 8
page 9
page 11

Graphical guide to graphics

March 5th, 2007

A great post at creating passionate users. The point - user manuals are REALLY important.

Bottom line: never underestimate the value of providing fabulous training materials in getting–and keeping–users motivated to get better. And the better they are, the more likely they are to appreciate (and buy) your higher-end versions, evangelize, buy and create accessories, etc.

I really like head first books. Based on getting you to learn the way your brain wants to, I think their method is fantastic. But could these principles can be applied to science too?.

Reading scientific literature takes a lot of effort. Sitting still and focusing on what the author wants you to understand, requires energy and concentration. What if the principles of the head-first learning series were applied? The stuff in science books and papers is, after all, some of the most difficult material you’re likely to read. We would benefit if this material was communicated in a way that would help us learn best.

“That’s easy for you to say, but how do we do it?” I hear you say. Well, I put my money where my mouth is. I created a short guide to making graphs in R, using what I hope is an effective method of communicating a difficult topic.

You can download the pdf of this guide here.

Example page from guide

The right graph, at the right time

February 28th, 2007

I think everyone would agree that the most important thing in science is results. The best scientists produce the most relevant and important results. Of course, the best results won’t matter if no one knows about them. Which is why we publish and give presentations.

Sometimes I see results in papers and presentations illustrated poorly. Graphs that don’t demostrate the point to the reader/audience in the best possible way. Here I give examples of how data can be presented in different contexts, based on two of my favorite resources. The first is the R language for statistics, the other is Garr ReynoldsPresentation Zen ideology.

A bad example
Here’s an extreme case, but not completely uncommon in presentations. Two continuous variables - the oxidation of ammonia to nitric acid, and air flow. The chart was produced, using default options, in NeoOffice.
Office example
My initial complaint, is the inappropriate x axis - the first half of the plot isn’t being used. The axis should begin around 40, where the data starts.

Next, the unattractive grey background and horizontal black lines. I personally find this style unpleasant, and would recommend that these always be removed.

Finally, the trend-line, the magenta color is not particularly nice, and why is it so thick? The wide line makes the chart look clunky and inelegant. If you’re making a chart, you want people to look at it, and appreciate the data. You’ve spent months slaving away to produce a set of results, so why not put the extra effort into presenting them well?

Producing a graph for a paper
Here is the same data produced using the default plot function in R.
Rexample

What strikes me about R plots, is how clean they appear. You could argue that it looks rather spartan, but the chart shows the data and nothing else. There are no frills, but then you want to illustrate your results efficiently. If the results aren’t that good, then no amount of fluffing will make them better. On the other hand if the results are good, extra decoration distracts from the main point.

Producing a graph for a presentation
Controversial, but I say don’t. If you can use a simpler way to show the result, do it. When looking at a chart in a paper, the reader has time to read the legend and think about what point it illustrates. I look at all the figures in a paper at least twice.

On the other hand, when presenting, you’ve usually got a limited time to get your point across. When you show a chart in a presentation the audience has to look at many things, the axis, points, trend-lines. This could distract from you, and your message.

What do you want to do in the time you have? You want to show your work as exciting and interesting to as many people as possible. How many times have you been in a presentation where there has been slide after slide of graphs. You can imagine that audience attention drops dramatically with each new plot. Here’s an example slide to illustrate how I would show the above data.

Presentation Example

This shows the point succinctly, no distractions. Remember that you’ll be talking at the same time as well. If the audience wants more information, they can find you afterwards. You can direct them to the great figures that you included in your paper!

Of course you’ll need to include a plot to demonstrate controversial and important results. The less plots you have prior to these, the more impact they and therefore your point, will have. Garr Reynolds has some tips (point 6) on producing graphs for presentations.

Finally
I’d like to end this post by quoting the R help page on the subject of pie charts

Pie charts are a very bad way of displaying information. The eye is good at judging linear measures and bad at judging relative areas. A bar chart or dot chart is a preferable way of displaying this type of data.

Cleveland (1985), page 264: “Data that can be shown by pie charts always can be shown by a dot chart. This means that judgements of position along a common scale can be made instead of the less accurate angle judgements.” This statement is based on the empirical investigations of Cleveland and McGill as well as investigations by perceptual psychologists.