Exercise 15d: Changing plots in Prism

From BITS wiki
Jump to: navigation, search
Go to parent GraphPad Prism statistical analyses

We have data coming from 6 mice before and after treatment. We have measured different variables:

  • IGF concentrations in the serum
  • insulin concentrations in the serum
  • insulin concentrations in blood plasma measured after standard centrifugation
  • insulin concentrations in blood plasma measured after fast centrifugation
  • insulin concentrations in serum measured after 10 cycles of freeze/thawing
We'll work with the first two sets of measurements. Download the mice IGF data and the mice insulin data. We have given each mouse a name to keep track of the data that comes from one particular mouse.

In the end we want to see if the drug influences the concentrations of the hormones (so using a paired t-test on the two data sets), but for this exercise we will just focus on making the graphs.

The order of the mice in the insulin data set is the same as in the IGV data set.

At first sight, there is no easy way to color the data points of the same mouse in the same color. You could right click each point and select Format this point -> Symbol color.

GPEx15D_5.png

In this way you could give each mouse a different color but you would have to repeat this for each column of each data set. Coloring of individual points is not something you can transfer between graphs using Magic. So this approach would take way too much time.

How to proceed then?
There are two possible approaches:

  • instead of using different colors for each mouse, we label the data points with the names of the mice.
  • we transform the column tables to grouped tables and make the plots for the grouped tables

Let's start with using the row titles as labels on the graph.

This creates a graph where you can actually see which point comes from which mouse

GPEx15D_7.png

Using the Magic button in the Change section of the top toolbar you could copy this chaacteristic to the graphs of all the other data sets.

But as you can see using the row titles on the graph creates a bit bit of a messy graph with a lot of text on top of each other. Coloring the data points according to the mouse they come from is a better solution.

To do this you have to transfer your data from column to grouped tables.

You see that this plot is already doing what we want but instead of using different colors, it uses a different symbol for each mouse.

In contrast to the first approach (using Format this point) where we had to repeat the coloring for each column, the color is now automatically adjusted for both the before and the after data point.

Additionally, the first approach did not only have to repeated for each column but also for each data set. This is not the case now, we can copy the coloring to all the other data sets using the Magic tool.