Plotting Data with Microsoft Excel



Similar documents
Intro to Excel spreadsheets

MARS STUDENT IMAGING PROJECT

Plots, Curve-Fitting, and Data Modeling in Microsoft Excel

Excel Guide for Finite Mathematics and Applied Calculus

Scientific Graphing in Excel 2010

Updates to Graphing with Excel

Figure 1. An embedded chart on a worksheet.

Summary of important mathematical operations and formulas (from first tutorial):

Create Charts in Excel

Excel Unit 4. Data files needed to complete these exercises will be found on the S: drive>410>student>computer Technology>Excel>Unit 4

Chapter 4 Creating Charts and Graphs

Excel -- Creating Charts

Tutorial 2: Using Excel in Data Analysis

STC: Descriptive Statistics in Excel Running Descriptive and Correlational Analysis in Excel 2013

CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS

GUIDELINES FOR PREPARING POSTERS USING POWERPOINT PRESENTATION SOFTWARE

Briefing document: How to create a Gantt chart using a spreadsheet

Graphing Parabolas With Microsoft Excel

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

A Guide to Using Excel in Physics Lab

Basic Excel Handbook

Data representation and analysis in Excel

Formulas, Functions and Charts

Microsoft Office Excel 2007 Key Features. Office of Enterprise Development and Support Applications Support Group

How to make a line graph using Excel 2007

Excel Math Project for 8th Grade Identifying Patterns

Parallel Plate Capacitor

Drawing a histogram using Excel

Getting Started with Excel Table of Contents

CONSTRUCTING SINGLE-SUBJECT REVERSAL DESIGN GRAPHS USING MICROSOFT WORD : A COMPREHENSIVE TUTORIAL

University of Southern California Marshall Information Services

Using Excel for descriptive statistics

Microsoft Excel 2010 Charts and Graphs

Microsoft Excel Basics

Excel 2007 Basic knowledge

Scatter Plots with Error Bars

Excel Tutorial. Bio 150B Excel Tutorial 1

This activity will show you how to draw graphs of algebraic functions in Excel.

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Using Excel for Handling, Graphing, and Analyzing Scientific Data:

Formatting Text in Microsoft Word

Microsoft Excel 2010 Part 3: Advanced Excel

Create a Poster Using Publisher

Plotting: Customizing the Graph

Assignment objectives:

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

Business Objects Version 5 : Introduction

Excel 2010: Create your first spreadsheet

Basic Microsoft Excel 2007

Intermediate PowerPoint

Microsoft Access 2010 handout

KaleidaGraph Quick Start Guide

As in the example above, a Budget created on the computer typically has:

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Advanced Microsoft Excel 2010

Graphing in EXCEL for the Classroom: A Step-by-Step Approach. David F. Cihak and Paul A. Alberto, Georgia State University

Appendix 2.1 Tabular and Graphical Methods Using Excel

Excel 2003 Tutorial I

0 Introduction to Data Analysis Using an Excel Spreadsheet

Microsoft Excel 2010 Tutorial

3 What s New in Excel 2007

Preface of Excel Guide

Acrobat PDF Forms - Part 2

Enhanced Formatting and Document Management. Word Unit 3 Module 3. Diocese of St. Petersburg Office of Training Training@dosp.

Creating Charts in Microsoft Excel A supplement to Chapter 5 of Quantitative Approaches in Business Studies

Using Microsoft Excel to Plot and Analyze Kinetic Data

Microsoft Word defaults to left justified (aligned) paragraphs. This means that new lines automatically line up with the left margin.

DIGITAL DESIGN APPLICATIONS Word Exam REVIEW

How To Create A View Frame In 3D

Publisher 2010 Cheat Sheet

Years after US Student to Teacher Ratio

PA Payroll Exercise for Intermediate Excel

Guide To Creating Academic Posters Using Microsoft PowerPoint 2010

Creating an Access Database. To start an Access Database, you should first go into Access and then select file, new.

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Spreadsheet. Parts of a Spreadsheet. Entry Bar

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Interactive Excel Spreadsheets:

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

If you know exactly how you want your business forms to look and don t mind detail

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Petrel TIPS&TRICKS from SCM

Microsoft Excel Tutorial

Learning Services IT Guide. Access 2013

Excel 2007 A Beginners Guide

Q&As: Microsoft Excel 2013: Chapter 2

Access II 2007 Workshop

Statgraphics Getting started

Get The Picture: Visualizing Financial Data part 1

USING EXCEL ON THE COMPUTER TO FIND THE MEAN AND STANDARD DEVIATION AND TO DO LINEAR REGRESSION ANALYSIS AND GRAPHING TABLE OF CONTENTS

Utilizing Microsoft Access Forms and Reports

Interactive Voting System. IVS-Basic IVS-Professional 4.4

Exercise 1: How to Record and Present Your Data Graphically Using Excel Dr. Chris Paradise, edited by Steven J. Price

Analyzing Data Using Excel

Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.

Writer Guide. Chapter 15 Using Forms in Writer

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

A simple three dimensional Column bar chart can be produced from the following example spreadsheet. Note that cell A1 is left blank.

Excel 2003 A Beginners Guide

Creating a Poster Presentation using PowerPoint

Transcription:

Plotting Data with Microsoft Excel Here is an example of an attempt to plot parametric data in a scientifically meaningful way, using Microsoft Excel. This example describes an experience using the Office X version for Macintosh. The details may change with different versions, but the principle stays the same the author must control the appearance of all aspects of the figure. We cannot count on programmers to have correctly guessed our intended use of the application. If you find that it is just too awkward to prepare a proper figure using a computer program, then do it by hand. If you use a hand drawn graph do keep in mind its purpose. If it is to be a working document, not to be presented or published, then you may want to make it as large as you can, ignoring margins, for maximum accuracy. For a paper or presentation, just keep the figure well within the margins of your sheet of graph paper, since the purpose is to illustrate the result, not to use the graph as a working document. You don't need to fill up all available space. If you submit a manuscript for publication or conduct a formal presentation, then you will probably have to prepare a computer generated figure. PROGRAM DEFAULT Table 1 represents measurements of heights of tree seedlings as they were allowed to grow. If you haven't much experience plotting with Excel you might want to open a new spreadsheet, enter the data, and follow along with the example. The data were entered into an Excel spreadsheet in columns in the same order as they appear in the table, with time (the independent variable) listed in the first column. Table 1. Time course of growth of seedlings of three common North American tree species. Measurements are height of seedling in centimeters. Time (days) 1 1 1 1.5. 3..3 5. 5. 1.5.7 3. 3.5 3.7 3. 1. 3.7 5. 7.7 1.3.3. 1 After selecting all of the data, including the headings, punch the plot icon and then just hit the NEXT buttons and then the finish buttons. Figure 1 shows what might come of it. Obviously, you must make some choices right from the beginning. A lot of things are wrong with figure 1. The most grievous error is that the independent variable was not recognized as such. All data were plotted versus row number, which is the program default for column, bar, and line charts. The plot type is not appropriate either. Column type graphs are best used for independent variables in the Plotting with Microsoft Excel 1

form of categories. To show a relationship between continuous variables such as height versus time, one would typically use a line graph or a scatter plot with trend lines. If you want to see just how inappropriate (even bizarre) some plot types are for these kinds of data, try making a "Doughnut," "Radar," or "Surface" chart with the same data. 5 15 1 Time (days) 5 1 3 5 7 Fig. 1. First attempt at plotting a time course of seedling growth using Microsoft Excel. SELECT A GRAPH TYPE Now try selecting a line graph, then go to the finish without choosing other options. 5 15 1 Time (days) 5 1 3 5 7 Fig.. Attempt at using a line graph. Plotting with Microsoft Excel

Obviously, the phrase "line graph" means something different, to the Microsoft Excel programmers, than it does to most of the rest of us. When you choose line graph in Excel, the program still treats the independent variable as a set of categories. Time is a continuous variable, so the x axis should go from zero to twenty days. In fact, time itself is treated as a dependent variable. Try a scatter plot Select the category "XY (Scatter)" and go with the defaults. 1 1 1 1 1 5 1 15 5 Fig. 3. Table 1 data as a scatter plot, default settings. Aha! It seems that if you want the x axis to represent a continuous variable, you must select a scatter plot. Notice that this plot type recognizes the first column of data as the dependent variable. Under Chart/Source data.../series you can delete or add dependent variables and/or change the independent variable. The program lets you make the selection directly on the chart, by highlighting the desired column(s) of data. You might want to practice a bit. ADD THE ESSENTIALS You don't need to add much to your scatter plot to make it acceptable. The axes should be labeled, of course. There should also be some kind of trend line for each data set. Under Chart Options.../Titles you have the opportunity to enter axis labels. Remember that in a typical publication the figure caption goes beneath the graph. We don't give a graph a title, which Excel places above the figure. For figure, smooth trend lines were added from the Chart Type... menu by selecting a different option for the type of scatter plot. You must let the data "tell you" what type of lines are appropriate. See the documents on error analysis and curvefitting and the summary, below. Plotting with Microsoft Excel 3

(http://www.owlnet.rice.edu/~labgroup/pdf/errorsandfits.htm or http://www.owlnet.rice.edu/~labgroup/pdf/errorsandfits.pdf 1 1 1 seedling height (cm) 1 1 5 1 15 5 time (days) Fig.. Scatter plot with axis labels and smoothed trend lines. About curve fitting The lines in the graph of figure are what the program calls "smoothed lines." Another choice is to use straight lines connecting the data points, a method also called "interpolation." In either case, the lines are strictly there to help guide the eye. Such lines are not theoretical curve fits. True curve fitting is based upon mathematical methods such as the method of least squares, and frequently requires the use of replicate samples, means, and standard errors. 1 1 1 1 1 1 1 1 1 1 1 1 - Fig. 5. Scatter plots with inappropriate trend lines. Plotting with Microsoft Excel

A true curve fit often does not intersect each and every data point. Figure 5 shows examples of inappropriate choices of trend lines. The data are obviously scattered due to experimental error, but the student used interpolation anyway. In figure the same data are visualized using a user-defined trend line. 1 1 1 1 1 1 Fig.. Scattered data visualized using a user-defined trend line See our document on error representation and curvefitting for introductory material on experimental error, its representation on graphs, and for basic material on curve fitting. REMOVE NON-ESSENTIALS Now that the basic plot is ready (back to figure ), let's make it acceptable for publication by getting rid of the "computer junk," and shaping it up. Under Chart Options... the gridlines tab allows you to extend the axis tic marks across the plot area, a feature that is completely non-essential to the effectiveness of this figure. Do note, however, that some publications allow tic marks to enter the graph space, and a grid may be positively useful if you intend to read numbers from the graph. Eliminate the gridlines from the major y axis units. You don't need the gray fill or the borders either. Double click in the graph area and you can choose "none" for border and area. Double click the border around the entire figure, and you can choose "none" for the larger border around the whole thing. The result should resemble the graph in figure 7. Plotting with Microsoft Excel 5

1 1 1 seedling height (cm) 1 1 5 1 15 5 time (days) Fig. 7. Gridlines and borders removed. For a presentation, you may wish to include a legend in the plot area, extended tic marks, color, borders, and perhaps other "bells and whistles." What you choose to do depends on the purpose of the figure. Just make sure that it you are the one making the decisions. Background shading reduces contrast, borders serve no useful purpose, color is seldom used for a published graph, and conventions often require the legend to be included in the figure caption, not in the plot area itself. Many journals ignore former conventions and permit all sorts of trend lines and legends, as long as they are useful, appropriate, and understandable. In print journals we seldom use color. It adds to publication costs, and consider that there are color blind people. Getting rid of color can be a little trickier. Select one of the data points to highlight the whole set. Go to Format/Selected Data Series... and make everything black, both for lines and data symbols. Play with symbol size and style, trying different options until you see what you want. An editor may require specific plot symbols, by the way, further stifling your creative independence. Plotting with Microsoft Excel

1 1 1 seedling height (cm) 1 1 5 1 15 5 time (days) Fig.. More formatting changes - larger symbols, different line styles, all black and white. Oops. So your figure isn't so colorful anymore. So what? No one will be upset if you figure has all of the essentials and none of the non-essentials. Now we'll do a couple of more things, and we're ready. PROPORTION AND ORIENTATION Note that the plot area of figure is a bit wider than it is tall. What is most important - the time axis, the height axis, or the relationship between the two? To show the relationship most effectively, square up the plot area by selecting the graph, grabbing an anchor point with the mouse, and changing the axis proportions. If you were plotting a single function, then creating a square plot area, and having at least one data point near the end of each axis should display the slope (in this case rate of growth) most effectively. To best show the differences among the three rates of growth, you might adjust proportions so that the middle set (data for ) produces a slope near forty-five degrees. The y axis would have to be taller than the x axis is long. Such adjustments are a matter of personal preference and perhaps trial and error to see what looks best. The y axis label is easier to read in a horizontal orientation. You can double click on the label, select the alignment tab in the dialog box, and change the orientation to horizontal. You may have to re-do the proportions. The legend might work better placed in the field itself (area within the ranges of the axes. You can simply move it to a good place. To produce figure 9, make the recommended changes to figure then select the chart, go to Format/Selected Chart Area..., select the Font tab, and make all of your titles/labels the same font and size. Changing proportions and copying/pasting apparently affects type proportions and everything. By the way, the choice of font style is yours to make, but fancy, elaborate styles can be hard to read and distracting. We went with Times, 1 point in the Excel document before pasting it in. Add an informative caption, and you're set. Plotting with Microsoft Excel 7

1 1 1 seedling height (cm) 1 1 5 1 15 5 time (days) Fig. 9. Differential growth rates of seedlings from three commonly planted landscape trees. Your simple black-and-white figure isn't as dramatic as a full color version with all of the "eye candy," but this way the reader is not distracted from the message that seedlings of grew much faster than those of the other two species. Figure 9 shows the graph as it might appear in a journal. Note that by convention a figure caption is placed below the corresponding figure. A journal editor might put the caption to the left, but rarely to the right or above. It's easier for a reader to find the information if he/she knows where to look, especially in a complicated results section. Compare figure 9 with the first figure you generated (figure 1). Quite a difference, isn't there? The lesson here is, decide what you want your figure to look like. Don't let some anonymous programmer do it for you. Plotting with Microsoft Excel