|
Peltier Tech
Excel Dashboards
|
Reciprocal Axis Scale.
Many physical phenomena exhibit behavior that shows faster rates or greater solubilities at higher temperatures. An Arrhenius equation gives the following relationship between some measure of reaction rate or chemical solubility and temperature: K = A exp (-Q/RT) where K is the rate or solubility, A is a constant, Q is an activation energy, R is the gas constant, and T is the absolute temperature. The equation above can be restated to: log (K) = A' - Q/RT A chart can be constructed with log(K) on the Y axis and reciprocal temperature (1/T) on the X axis; the slope of this line indicates the activation energy (actually -Q/R) and the intercept is the new constant A'. This page describes the construction of one variation of this type of chart. Microsoft Excel does not offer a built in capability to chart reciprocal data, but the technique described here allows you to simulate a reciprocal scale along a chart axis (the horizontal axis in this example). This is related to the Flexible Log Axis Scale technique described by Tushar Mehta on his web site, http://www.tushar-mehta.com. A dummy series is plotted along the X axis, and formatted to look like an axis, with tick marks and labels. These labels are applied to the dummy axis series using the XY Chart Labeler, a free add-in written by Rob Bovey and available at http://www.appspro.com. Download and install Rob's Chart Labeler before getting too involved in this example. This reciprocal axis chart is an application of the Arbitrary Axis Scale and Arbitrary Gridlines examples shown elsewhere on this website. Another implementation of these techniques is shown in my Simulated Probability Chart Example.
The tables below show the data I used to construct the simulated X and Y axes in this example, and the dummy experimental data I used. The only significance of this data is that I chose it to fall roughly on a straight line on the log K - 1/T chart. This line has a positive slope because the reciprocal temperature increases from right to left.
The temperature columns contain numbers with a custom number format of "0°C". The reciprocal temperatures were defined as possible: For a Celcius value in cell A2, the formula in cell B2 is: =1000/(A2+273) Y values for the Dummy X Axis correspond to the minimum on the Y axis. The original Celcius temperatures are used for the X axis labels, because they are more meaningful than the transformed reciprocal temperatures. X values for the Dummy Y Axis correspond to the maximum on the X axis (the values are charted in reverse order). The Y axis labels were chosen to show one digit, including minor tick labels, and not have extraneous zeros as the scale moved to hundreds or hundredths. I started constructing the chart by selecting the Dummy X axis data (1000/K and Y), and running the chart wizard to generate an XY Scatter chart. I selected the Dummy Y axis data (X and Y), copied it, selected the chart, selected Paste Special from the Edit menu, and checked the New Series, By Columns, and Categories in First Column options. Without any further formatting, the chart looks like this:
I formatted the X axis as follows:
I formatted the Y axis as follows:
I formatted both dummy series as follows:
If you format one series, you can then select the second, and press F4 to repeat the formatting on the second series. The chart now looks like this:
Next I added Y axis minor gridlines to the major gridlines present by default. This is one of the options in the Chart Options dialog from the Chart menu, or available when you right click on the chart. To get X axis gridlines, I used error bars on the dummy X axis series. Select the series, press Ctrl-1 to open the Formatting dialog, click to the Y Error Bars tab, click on the Plus error bars button, and for fixed value, enter 99, which is the difference between the Y axis maximum and minimum values. Now select one of these error bars, press Ctrl-1 to format these. Select the style without the cross at the end, and choose the hairline weight to match the Y axis gridlines.
Before adding axis labels, I deleted the legend. I changed the size of the plot area, to allow room at the left and bottom margins for the labels. I used the XY Chart Labeler to add the dummy axis labels to the dummy axis series. The Labeler runs off the new XY Chart Labels command at the bottom of the Tools menu. Select the chart, and run this command:
Select Series 1 in the first dropdown box, use the mouse to select the range containing the Celcius temperatures, and finally choose Below as the position of these labels. I rotated these labels to reduce the overlap between adjacent labels. Repeat the Add Chart Labels command to put the dummy Y labels to the left of the Series 2 markers. In the full size chart, the labels look great. In the smaller version I made for this exercise, the labels are still too large and too close. I shrunk the font size and removed a few of the cluttered labels:
Finally I added the simulated data, to produce the chart at the top of this page. A zipped workbook is available with sample data and an example reciprocal axis chart. |
Peltier Technical Services, Inc.Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | PTS BlogPeltier Technical Services, Inc., Copyright © 2010. All rights reserved. |