Graph Set Up. Dave Lorenz. July 27, Abstract

Size: px
Start display at page:

Download "Graph Set Up. Dave Lorenz. July 27, Abstract"

Transcription

1 Graph Set Up Dave Lorenz July 7, 7 Abstract These examples demonstrate how to set up a complete figure beginning with a simple scatter plot. The general procedures apply to any other high-level graphics functions within the smwrgraphs package. NOTE: to use any high-level graphics function in the smwrgraphs package, you must first call a function to set up the graphics environment like setpage or setpdf, but these are not shown in these examples because setsweave is used in vignettes. Contents Introduction A Simple Graph Plot Customization 4 4 Axis Customization 6 5 Adding a plot to a graph 8 6 Multiple Graphs 7 Multiple Graphs with an Explanation 8 Multiple Graphs with a Shared Axis 4 9 Restoring Axis Labels 6

2 Introduction The focus of the graphics functions in smwrgraphs is to produce nearly publication ready graphs for U.S. Geological Survey series reports. As such, the graphs have some very specific requirements that must be set up in calls to functions in smwrgraphs that set up the correct graphics environment. The primary function for setting up the graphics environment in preparation for publication in U.S. Geological Survey series reports is setpdf. There are several other functions in smwrgraphs that set up the graphics environment primarily for preview or other applications. They are described below. The use of any other plotting device will generate warnings from the functions in smwrgraphs and the graphs will not appear to meet U.S. Geological Survey graphics standards. setgd A very basic and simple to use function that sets up a square, onscreen graphics device for preview. setknitr Used to create PDF output files when using knitr to process the script. setpage Set up an onscreen graphics device for preview or presentation. setpdf The function to set up a PDF file that can be easily edited by U.S. Geological Survey illustrators. setpng Used to create PNG files for HTML documents or other documents that require a bitmap format. setrstudio Can be used to configure the default graphics output in RStudio@ to accept plots created using the functions in smwrgraphs without warnings. setsweave Used to create PDF files when using Sweave. All of the examples use randomly generated sets of data for simple scatter plots. The data are generated in the following code. > # Load the smwrgraphs package > library(smwrgraphs) > # Generate the random data > set.seed(76) > X <- rnorm() > Y <- X + rnorm() > Z <- rnorm(, sd=.) > Zfill <- runif(, -, ) Some basic nomenclature is necessary to understand the instructions in this vignette. figure The completed product, consisting of one or more graphs and an optional explanation. graph The area containing the plot, axis labels and titles and graph title. plot The data plotted as lines, points, or other. axis labels Labels for each major tick. axis title A brief description of the axis. graph title A description or identifier for the graph. explanation An explanation of the symbols in the graphs, also called legend or key.

3 A Simple Graph The simplest graph can be created using only two functions, one to set up the graphics environment and one to create the graph. The additional call to graphics.off is required to close the graph, required for setpdf, setsweave, setknitr, or setpng. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage("square") > setsweave("graph", 6,6) > # > xyplot(x, Y) > # Required call to close PDF output graphics > graphics.off() Y X Figure. A simple x-y scatter plot.

4 Plot Customization The default plot created by xyplot is a simple x-y scatter plot. The axes are scaled to a range that fits the data and labeled according accepted practices within the USGS The x- and y-axis titles are derived from the names of the x and y arguments. Each of those options are controlled by a simple argument to xyplot. The plot is filled black circles. The Plot argument is a list that controls what is actually plotted, any individual component of that list can be omitted and the default value will be used. This example shows several options. Each line is commented to describe the desired change. they would not necessarily need to be commented in any call. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage("square") > setsweave("graph", 6,6) > # > xyplot(x, Y, + # Change from solod black circles to blue plus signs + Plot=list(symbol="+", color="blue"), + # Set the x-axis range to - to, for symmetry + xaxis.range=c(-,), + # label at the five integral values: -, -,,, + xlabels=5, + # can also be manually set: see figure + # Change the x- and y-axis titles and end the call + xtitle="random Data", + ytitle="correlated Data") > # Required call to close PDF output graphics > graphics.off() 4

5 Correlated Data Random Data Figure. Scatter plot variations. 5

6 4 Axis Customization The previous section showed some simple ways to modify axis labels. The user has a great deal of control over axis labels by using the arguments to linearpretty for linear axes, logpretty for log axes, datepretty for date axes, and probpretty for probability axes. For all label arguments as list, the labels argument must be supplied. The example below produces axis labels in scientific notation, to change from default axis labeled in scientific notation to numeric, simply specify numeric for the style component in the list for ylabels or xlabels. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage("square") > setsweave("graph", 6,6) > # > bigy <- exp(y) > xyplot(x, bigy, + # Change from solod black circles to blue plus signs + Plot=list(symbol="uptri", color="green"), + # Set the x-axis range to - to, for symmetry + xaxis.range=c(-,), + # label at the five integral values: -, -,,, + xlabels=c(-, -,,, ), + yaxis.log=true, + # The default behaviour would be numeric labels for this range. + ylabels=list(labels="auto", style="scientific"), + # Change the x- and y-axis titles and end the call + xtitle="random Data", + ytitle="correlated Data") > # Required call to close PDF output graphics > graphics.off() 6

7 Correlated Data Random Data Figure. Scatter plot label variations. 7

8 5 Adding a plot to a graph All of the high-level plotting functions in the smwrgraphs package return much information about the graph and the plot. This information can be used to add a plot to an existing graph or add an explanation. The information returned from a high-level plotting function is passed to other functions that add to the graph as the current argument. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage("square") > setsweave("graph4", 6,6) > # Create a scatter plot from the X and Y data. The name of the output (AA.pl) > # is completely arbiutrary, but consistently used through these examples. > AA.pl <- xyplot(x, Y, Plot=list(name="Correlated Data", color="blue"), + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", + ytitle="response Data") > # Use the addxy function to add a plot to the graph. The output contains > # information about both plots and cen be used to create an explanation > # or legend. > AA.pl <- addxy(x, Z, Plot=list(name="Uncorrelated Data", what="points", + color="darkred"), current=aa.pl) > # The addexplanation function processes the information in the output to > # create an explanaiton of the data shown in the plots. > addexplanation(aa.pl, where="ul", title="") > # Required call to close PDF output graphics > graphics.off() 8

9 Correlated Data Uncorrelated Data Response Data Random Data Figure 4. Example of multiple plots in a graph. 9

10 6 Multiple Graphs Sometimes, complete figures need multiple graphs instead of multiple plots within a graph. In that case, or when the graph area needs to be changed from the default, two additional functions (setlayout and setgraph) are needed. The setlayout function can be used to set up a grid of graphs and the setgraph functions sets up each individual graph. The graphs set up by setlayout can share axes or stand alone. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage(layout=list(width=6, height=4)). > setsweave("graph5", 6,4) > # Set the layout for graphs in one row. and allocate room at the top for > # a graph title > AA.lo <- setlayout(num.cols=) > # The first graph is the left-most graph > AA.gr <- setgraph(, AA.lo) > # Create a scatter plot from the X and Y data. > AA.pl <- xyplot(x, Y, Plot=list(color="blue"), + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", ytitle="correlated Data", + margin=aa.gr) > # Add the title > addtitle("a") > # The figure caption should always by the lower-left most graph > addcaption("figure 5. Example Graphs.") > # Subsequent graphs are placed to the right in each row > AA.gr <- setgraph(, AA.lo) > # Create a scatter plot from the X and Y data. > AA.pl <- xyplot(x, Z, Plot=list(color="darkred"), + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", ytitle="uncorrelated Data", + margin=aa.gr) > # Add the title > addtitle("b") > # Required call to close PDF output graphics > graphics.off()

11 A B Correlated Data Uncorrelated Data Random Data Figure 5. Example Graphs. Random Data

12 7 Multiple Graphs with an Explanation Sometimes multiple graphs require a separate explanation, also called a legend, to describe the information that is plotted. The setlayout function can allocate space for the explanation to the right, at the bottom, or in a grid cell. When placing an explanation in a grid cell, it is important to distinguish between the grid cell number, which ranges from (in the upper left corner) to the number of rows times the number of columns (in the lower right corner), from the graph number, which ranges from to the number of graphs. The graph numbers are laid out much like the grid cell numbers, but skip the grid cell allocated to the explanation. Note that not all graphs numbers need to be used and that they can be used in any order. The example below illustrates how to set up an explanation within a grid cell. The layout is printed to illustrate the configuration of the graph number is the cells. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage(layout=list(width=6, height=4)). > setsweave("graph6", 6,6) > # Set the layout for rows and columns with the explanation in grid cell > # Note that num.graphs must be set > AA.lo <- setlayout(num.cols=, num.rows=, num.graphs=, explanation=list(grid=)) > # Print the layout to see how the graph number are assigned to the grid cells > print(aa.lo) Graph numbers through Explanation is e Grid cell not available is. e > # The first graph (box plot) is in the upper-left corner > AA.gr <- setgraph(, AA.lo) > AA.bp <- boxplot(y, Z, Box=list(type="simple", show.counts=false), + xlabels=c("correlated", "Uncorrelated")) > # The explanation for the box plot can be added now or after the other graphs > AA.gr <- setgraph("explanation", AA.lo) > addexplanation(aa.bp, title=expression(bold("box Plot Description"))) > # Create a scatter plot from the X and Y data. > AA.gr <- setgraph(, AA.lo) > AA.pl <- xyplot(x, Y, Plot=list(color="blue"), + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", ytitle="correlated Data", + margin=aa.gr) > # ANd the final graph > AA.gr <- setgraph(, AA.lo) > # Create a scatter plot from the X and Y data. > AA.pl <- xyplot(x, Z, Plot=list(color="darkred"),

13 + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", ytitle="uncorrelated Data", + margin=aa.gr) > # Required call to close PDF output graphics > graphics.off() Box Plot Description Maximum value 75th percentile 5th percentile (median) 5th percentile Minimum value Correlated Uncorrelated Correlated Data Uncorrelated Data Random Data Random Data Figure 6. Figure with multiple graphs and an explanation.

14 8 Multiple Graphs with a Shared Axis Sometimes it is desirable that either x- or y-axes be shared across a column or row. Sharing axes requires that the axis ranges be controlled for all graphs in the column or row. The setlayout function controls axis sharing by the shared.x and shared.y arguments. Nonnegative values to those arguments indicate sharing a value of indicates touching axes, positive value are relative spacing based on the default character size. The example below illustrates a simple case. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage(layout=list(width=6, height=4)). > setsweave("graph7", 4,6) > # Set the layout for graphs in one column with shared x-axes > AA.lo <- setlayout(num.rows=, shared.x=) > # The first graph is the upper graph > AA.gr <- setgraph(, AA.lo) > # Create a scatter plot from the X and Y data. > AA.pl <- xyplot(x, Y, Plot=list(color="blue"), + xaxis.range=c(-,), xlabels=5, + ytitle="correlated Data", + margin=aa.gr) > # The second graph is placed immediately below > AA.gr <- setgraph(, AA.lo) > # Create a scatter plot from the X and Y data. > AA.pl <- xyplot(x, Z, Plot=list(color="darkred"), + xaxis.range=c(-,), xlabels=5, + xtitle="random Data", ytitle="uncorrelated Data", + margin=aa.gr) > # Required call to close PDF output graphics > graphics.off() 4

15 Correlated Data Uncorrelated Data Random Data Figure 7. Figure of multiple graphs with a shared x-axis. 5

16 9 Restoring Axis Labels Sometimes it is necessary to suppress drawing the axis ticks, labels, and title until the graph is complete. This is unusual, but can easily happen when drawing shaded areas. This example illustrates how to add the ticks, labels, and title after adding a shaded area. > # Set up the graphics environment, the equivalent call for an on screen > # device would be setpage(layout=list(width=6, height=4)). > setsweave("graph8", 6,5) > # Set the layout for graphs in one column with shared x-axes > # Create a scatter plot from the X and Z data. > AA.pl <- xyplot(x, Z, Plot=list(color="blue"), + xaxis.range=c(-,), xlabels=-5, + yaxis.range=c(-,), + ytitle="uncorrelated Data", xtitle="") > # Add the shaded are just above the bottom x-axis > addarea(sort(x), Zfill, ybase=-, current=aa.pl) > # Now add ticks, labels and title > addaxislabels("bottom", AA.pl, ticks=true, labels=true, title="x") > # Required call to close PDF output graphics > graphics.off() Uncorrelated Data X Figure 8. Graph showing axis ticks on top of shaded area. 6

Graph Gallery. Dave Lorenz. July 27, Abstract

Graph Gallery. Dave Lorenz. July 27, Abstract Graph Gallery Dave Lorenz July 27, 2017 Abstract These examples demonstrate selected high-level plotting functions in the smwrgraphs package that are not covered in other vignettes of demos. NOTE: to use

More information

Technology Assignment: Scatter Plots

Technology Assignment: Scatter Plots The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. You

More information

Error-Bar Charts from Summary Data

Error-Bar Charts from Summary Data Chapter 156 Error-Bar Charts from Summary Data Introduction Error-Bar Charts graphically display tables of means (or medians) and variability. Following are examples of the types of charts produced by

More information

3D Surface Plots with Groups

3D Surface Plots with Groups Chapter 942 3D Surface Plots with Groups Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 3 input parameters vary, you

More information

Points Lines Connected points X-Y Scatter. X-Y Matrix Star Plot Histogram Box Plot. Bar Group Bar Stacked H-Bar Grouped H-Bar Stacked

Points Lines Connected points X-Y Scatter. X-Y Matrix Star Plot Histogram Box Plot. Bar Group Bar Stacked H-Bar Grouped H-Bar Stacked Plotting Menu: QCExpert Plotting Module graphs offers various tools for visualization of uni- and multivariate data. Settings and options in different types of graphs allow for modifications and customizations

More information

Package arphit. March 28, 2019

Package arphit. March 28, 2019 Type Package Title RBA-style R Plots Version 0.3.1 Author Angus Moore Package arphit March 28, 2019 Maintainer Angus Moore Easily create RBA-style graphs

More information

Math 121 Project 4: Graphs

Math 121 Project 4: Graphs Math 121 Project 4: Graphs Purpose: To review the types of graphs, and use MS Excel to create them from a dataset. Outline: You will be provided with several datasets and will use MS Excel to create graphs.

More information

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors: The goal of this technology assignment is to graph several formulas in Excel. This assignment assumes that you using Excel 2007. The formula you will graph is a rational function formed from two polynomials,

More information

Dealing with Data in Excel 2013/2016

Dealing with Data in Excel 2013/2016 Dealing with Data in Excel 2013/2016 Excel provides the ability to do computations and graphing of data. Here we provide the basics and some advanced capabilities available in Excel that are useful for

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2017 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

Scientific Python: matplotlib

Scientific Python: matplotlib Scientific Python: matplotlib 17 July 2014 Introduction and Aims This exercise introduces the matplotlib module of Python. Matplotlib is a versatile plotting library that can be used to produce both quick

More information

Working with Census Data Excel 2013

Working with Census Data Excel 2013 Working with Census Data Excel 2013 Preparing the File If you see a lot of little green triangles next to the numbers, there is an error or warning that Excel is trying to call to your attention. In my

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2015 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

PASS Sample Size Software

PASS Sample Size Software Chapter 941 Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 2 input parameters vary, you can create stunning 3D power

More information

Spreadsheet View and Basic Statistics Concepts

Spreadsheet View and Basic Statistics Concepts Spreadsheet View and Basic Statistics Concepts GeoGebra 3.2 Workshop Handout 9 Judith and Markus Hohenwarter www.geogebra.org Table of Contents 1. Introduction to GeoGebra s Spreadsheet View 2 2. Record

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

APPM 2460 PLOTTING IN MATLAB

APPM 2460 PLOTTING IN MATLAB APPM 2460 PLOTTING IN MATLAB. Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization, or plots.

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

Excel R Tips. is used for multiplication. + is used for addition. is used for subtraction. / is used for division

Excel R Tips. is used for multiplication. + is used for addition. is used for subtraction. / is used for division Excel R Tips EXCEL TIP 1: INPUTTING FORMULAS To input a formula in Excel, click on the cell you want to place your formula in, and begin your formula with an equals sign (=). There are several functions

More information

Revision Topic 11: Straight Line Graphs

Revision Topic 11: Straight Line Graphs Revision Topic : Straight Line Graphs The simplest way to draw a straight line graph is to produce a table of values. Example: Draw the lines y = x and y = 6 x. Table of values for y = x x y - - - - =

More information

Plotting Graphs. Error Bars

Plotting Graphs. Error Bars E Plotting Graphs Construct your graphs in Excel using the method outlined in the Graphing and Error Analysis lab (in the Phys 124/144/130 laboratory manual). Always choose the x-y scatter plot. Number

More information

Homework 1 Excel Basics

Homework 1 Excel Basics Homework 1 Excel Basics Excel is a software program that is used to organize information, perform calculations, and create visual displays of the information. When you start up Excel, you will see the

More information

Total Number of Students in US (millions)

Total Number of Students in US (millions) The goal of this technology assignment is to graph a formula on your calculator and in Excel. This assignment assumes that you have a TI 84 or similar calculator and are using Excel 2007. The formula you

More information

Project 11 Graphs (Using MS Excel Version )

Project 11 Graphs (Using MS Excel Version ) Project 11 Graphs (Using MS Excel Version 2007-10) Purpose: To review the types of graphs, and use MS Excel 2010 to create them from a dataset. Outline: You will be provided with several datasets and will

More information

Excel 2. Module 3 Advanced Charts

Excel 2. Module 3 Advanced Charts Excel 2 Module 3 Advanced Charts Revised 1/1/17 People s Resource Center Module Overview This module is part of the Excel 2 course which is for advancing your knowledge of Excel. During this lesson we

More information

Computational lab on complex numbers

Computational lab on complex numbers Computational lab on complex numbers SAK, physics 1140 March 15, 2010 1 Objective To learn how to use MATLAB as an advanced calculator and gain familiarity with complex numbers using MATLAB. 2 Introduction

More information

HOUR 12. Adding a Chart

HOUR 12. Adding a Chart HOUR 12 Adding a Chart The highlights of this hour are as follows: Reasons for using a chart The chart elements The chart types How to create charts with the Chart Wizard How to work with charts How to

More information

KEY TERMS chart chart body Chart Wizard client object legend PDF XPS

KEY TERMS chart chart body Chart Wizard client object legend PDF XPS LESSON SKILL MATRIX Skill Exam Objective Objective Number Creating a Chart Using the Chart Wizard Add report controls 5.2.5 Formatting a Chart Modify data sources 5.2.4 Changing Chart Types Saving a Database

More information

WHAT YOU SHOULD LEARN

WHAT YOU SHOULD LEARN GRAPHS OF EQUATIONS WHAT YOU SHOULD LEARN Sketch graphs of equations. Find x- and y-intercepts of graphs of equations. Use symmetry to sketch graphs of equations. Find equations of and sketch graphs of

More information

ENV Laboratory 2: Graphing

ENV Laboratory 2: Graphing Name: Date: Introduction It is often said that a picture is worth 1,000 words, or for scientists we might rephrase it to say that a graph is worth 1,000 words. Graphs are most often used to express data

More information

Computer Programming in MATLAB

Computer Programming in MATLAB Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Engineering Faculty Department of Mechanical Engineering Arrays in MATLAB; Vectors and Matrices Graphing Vector Generation Before graphing plots in

More information

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example This exercise is a follow-up to the MPA admissions example used in the Excel Workshop. This document contains detailed solutions

More information

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2

More information

Reference and Style Guide for Microsoft Excel

Reference and Style Guide for Microsoft Excel Reference and Style Guide for Microsoft Excel TABLE OF CONTENTS Getting Acquainted 2 Basic Excel Features 2 Writing Cell Equations Relative and Absolute Addresses 3 Selecting Cells Highlighting, Moving

More information

1 Introduction to Using Excel Spreadsheets

1 Introduction to Using Excel Spreadsheets Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)

More information

To complete this database, you will need the following file:

To complete this database, you will need the following file: CHAPTER 2 Access More Skills 13 Create a Multiple Items Form A multiple items form displays records in rows and columns in the same manner as a datasheet. A multiple items form provides more formatting

More information

Fathom Dynamic Data TM Version 2 Specifications

Fathom Dynamic Data TM Version 2 Specifications Data Sources Fathom Dynamic Data TM Version 2 Specifications Use data from one of the many sample documents that come with Fathom. Enter your own data by typing into a case table. Paste data from other

More information

Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures

Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures Matlab is flexible enough to let you quickly visualize data, and

More information

Plotting - Practice session

Plotting - Practice session Plotting - Practice session Alessandro Fanfarillo - Salvatore Filippone fanfarillo@ing.uniroma2.it May 28th, 2013 (fanfarillo@ing.uniroma2.it) Plotting May 28th, 2013 1 / 14 Plot function The basic function

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

Making Tables and Graphs with Excel. The Basics

Making Tables and Graphs with Excel. The Basics Making Tables and Graphs with Excel The Basics Where do my IV and DV go? Just like you would create a data table on paper, your IV goes in the leftmost column and your DV goes to the right of the IV Enter

More information

Charts in Excel 2003

Charts in Excel 2003 Charts in Excel 2003 Contents Introduction Charts in Excel 2003...1 Part 1: Generating a Basic Chart...1 Part 2: Adding Another Data Series...3 Part 3: Other Handy Options...5 Introduction Charts in Excel

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

= 3 + (5*4) + (1/2)*(4/2)^2.

= 3 + (5*4) + (1/2)*(4/2)^2. Physics 100 Lab 1: Use of a Spreadsheet to Analyze Data by Kenneth Hahn and Michael Goggin In this lab you will learn how to enter data into a spreadsheet and to manipulate the data in meaningful ways.

More information

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed. Example 4 Printing and Plotting Matlab provides numerous print and plot options. This example illustrates the basics and provides enough detail that you can use it for typical classroom work and assignments.

More information

Here is the data collected.

Here is the data collected. Introduction to Scientific Analysis of Data Using Spreadsheets. Computer spreadsheets are very powerful tools that are widely used in Business, Science, and Engineering to perform calculations and record,

More information

SAS Visual Analytics 8.2: Working with Report Content

SAS Visual Analytics 8.2: Working with Report Content SAS Visual Analytics 8.2: Working with Report Content About Objects After selecting your data source and data items, add one or more objects to display the results. SAS Visual Analytics provides objects

More information

Microsoft Excel. Charts

Microsoft Excel. Charts Microsoft Excel Charts Chart Wizard To create a chart in Microsoft Excel, select the data you wish to graph or place yourself with in the conjoining data set and choose Chart from the Insert menu, or click

More information

WORD Creating Objects: Tables, Charts and More

WORD Creating Objects: Tables, Charts and More WORD 2007 Creating Objects: Tables, Charts and More Microsoft Office 2007 TABLE OF CONTENTS TABLES... 1 TABLE LAYOUT... 1 TABLE DESIGN... 2 CHARTS... 4 PICTURES AND DRAWINGS... 8 USING DRAWINGS... 8 Drawing

More information

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command...

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... Contents 2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... 9 2D LINE PLOTS One of the benefits of programming in MATLAB

More information

Excel 2010 Worksheet 3. Table of Contents

Excel 2010 Worksheet 3. Table of Contents Table of Contents Graphs and Charts... 1 Chart Elements... 1 Column Charts:... 2 Pie Charts:... 6 Line graph 1:... 8 Line Graph 2:... 10 Scatter Charts... 12 Functions... 13 Calculate Averages (Mean):...

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

To make sense of data, you can start by answering the following questions:

To make sense of data, you can start by answering the following questions: Taken from the Introductory Biology 1, 181 lab manual, Biological Sciences, Copyright NCSU (with appreciation to Dr. Miriam Ferzli--author of this appendix of the lab manual). Appendix : Understanding

More information

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want.

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want. Selecting Cells: Step 1: Click and drag to select the cells you want. Naming Cells: Viewlet available Step 2: To select different cells that are not next to each other, hold down as you click and

More information

Spreadsheet and Graphing Exercise Biology 210 Introduction to Research

Spreadsheet and Graphing Exercise Biology 210 Introduction to Research 1 Spreadsheet and Graphing Exercise Biology 210 Introduction to Research There are many good spreadsheet programs for analyzing data. In this class we will use MS Excel. Below are a series of examples

More information

Lab1: Use of Word and Excel

Lab1: Use of Word and Excel Dr. Fritz Wilhelm; physics 230 Lab1: Use of Word and Excel Page 1 of 9 Lab partners: Download this page onto your computer. Also download the template file which you can use whenever you start your lab

More information

Graphing Single Subject Research Data. AAC Colloquium October 18 th, 2017

Graphing Single Subject Research Data. AAC Colloquium October 18 th, 2017 Graphing Single Subject Research Data AAC Colloquium October 18 th, 2017 Set up the spreadsheet Input the data Graph Harry s data Click and hold, then drag to select Harry s data Just for the top graph

More information

NENS 230 Assignment 4: Data Visualization

NENS 230 Assignment 4: Data Visualization NENS 230 Assignment 4: Data Visualization Due date: Tuesday, October 20, 2015 Goals Get comfortable manipulating figures Familiarize yourself with common 2D and 3D plots Understand how color and colormaps

More information

Computer Applications Final Exam Study Guide

Computer Applications Final Exam Study Guide Name: Computer Applications Final Exam Study Guide Microsoft Word 1. To use -and-, position the pointer on top of the selected text, and then drag the selected text to the new location. 2. The Clipboard

More information

How to use Excel Spreadsheets for Graphing

How to use Excel Spreadsheets for Graphing How to use Excel Spreadsheets for Graphing 1. Click on the Excel Program on the Desktop 2. You will notice that a screen similar to the above screen comes up. A spreadsheet is divided into Columns (A,

More information

Using the Matplotlib Library in Python 3

Using the Matplotlib Library in Python 3 Using the Matplotlib Library in Python 3 Matplotlib is a Python 2D plotting library that produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.

More information

Studying in the Sciences

Studying in the Sciences Organising data and creating figures (charts and graphs) in Excel What is in this guide Familiarisation with Excel (for beginners) Setting up data sheets Creating a chart (graph) Formatting the chart Creating

More information

GRAPHICS AND VISUALISATION WITH MATLAB

GRAPHICS AND VISUALISATION WITH MATLAB GRAPHICS AND VISUALISATION WITH MATLAB UNIVERSITY OF SHEFFIELD CiCS DEPARTMENT Des Ryan & Mike Griffiths September 2017 Topics 2D Graphics 3D Graphics Displaying Bit-Mapped Images Graphics with Matlab

More information

DNS Server Status Dashboard

DNS Server Status Dashboard The Cisco Prime Network Registrar server status dashboard in the web user interface (web UI) presents a graphical view of the system status, using graphs, charts, and tables, to help in tracking and diagnosis.

More information

Rules for deciding the number of significant figures in a measured quantity:

Rules for deciding the number of significant figures in a measured quantity: Rules for deciding the number of significant figures in a measured quantity: (1) All nonzero digits are significant: 1.234 g has 4 significant figures, 1.2 g has 2 significant figures. (2) Zeroes between

More information

Introduction to Excel Workshop

Introduction to Excel Workshop Introduction to Excel Workshop Empirical Reasoning Center June 6, 2016 1 Important Terminology 1. Rows are identified by numbers. 2. Columns are identified by letters. 3. Cells are identified by the row-column

More information

Prof. Manoochehr Shirzaei. RaTlab.asu.edu

Prof. Manoochehr Shirzaei. RaTlab.asu.edu RaTlab.asu.edu Introduction To MATLAB Introduction To MATLAB This lecture is an introduction of the basic MATLAB commands. We learn; Functions Procedures for naming and saving the user generated files

More information

Basic Graphs. Dmitry Adamskiy 16 November 2011

Basic Graphs. Dmitry Adamskiy 16 November 2011 Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken

More information

EE 350. Continuous-Time Linear Systems. Recitation 1. 1

EE 350. Continuous-Time Linear Systems. Recitation 1. 1 EE 350 Continuous-Time Linear Systems Recitation 1 Recitation 1. 1 Recitation 1 Topics MATLAB Programming Basic Operations, Built-In Functions, and Variables m-files Graphics: 2D plots EE 210 Review Branch

More information

Computing Fundamentals Plotting

Computing Fundamentals Plotting Computing Fundamentals Plotting Salvatore Filippone salvatore.filippone@uniroma2.it 2014 2015 (salvatore.filippone@uniroma2.it) Plotting 2014 2015 1 / 14 Plot function The basic function to plot something

More information

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data The following table shows the raw data which you need to fit to an appropriate equation k (s -1 ) T (K) 0.00043 312.5 0.00103 318.47 0.0018

More information

Microsoft Word for Report-Writing (2016 Version)

Microsoft Word for Report-Writing (2016 Version) Microsoft Word for Report-Writing (2016 Version) Microsoft Word is a versatile, widely-used tool for producing presentation-quality documents. Most students are well-acquainted with the program for generating

More information

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Data Content: Example: Who chats on-line most frequently? This Technology Use dataset in

More information

Chemistry Excel. Microsoft 2007

Chemistry Excel. Microsoft 2007 Chemistry Excel Microsoft 2007 This workshop is designed to show you several functionalities of Microsoft Excel 2007 and particularly how it applies to your chemistry course. In this workshop, you will

More information

GraphPad Prism Features

GraphPad Prism Features GraphPad Prism Features GraphPad Prism 4 is available for both Windows and Macintosh. The two versions are very similar. You can open files created on one platform on the other platform with no special

More information

Chapter 2. MATLAB Fundamentals

Chapter 2. MATLAB Fundamentals Chapter 2. MATLAB Fundamentals Choi Hae Jin Chapter Objectives q Learning how real and complex numbers are assigned to variables. q Learning how vectors and matrices are assigned values using simple assignment,

More information

Overview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab

Overview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab Overview Lecture 13: Graphics and Visualisation Graphics & Visualisation 2D plotting 1. Plots for one or multiple sets of data, logarithmic scale plots 2. Axis control & Annotation 3. Other forms of 2D

More information

Understand and plan a chart Create a chart Move and resize charts and chart objects Apply chart layouts and styles

Understand and plan a chart Create a chart Move and resize charts and chart objects Apply chart layouts and styles Working with Charts Objectives Understand and plan a chart Create a chart Move and resize charts and chart objects Apply chart layouts and styles 2 Objectives Customize chart elements Enhance a chart Create

More information

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University MATLAB Fundamentals Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University Reference: 1. Applied Numerical Methods with MATLAB for Engineers, Chapter 2 &

More information

EGR 102 Introduction to Engineering Modeling. Lab 05B Plotting

EGR 102 Introduction to Engineering Modeling. Lab 05B Plotting EGR 102 Introduction to Engineering Modeling Lab 05B Plotting 1 Overview Plotting in MATLAB 2D plotting ( ezplot(), fplot(), plot()) Formatting of 2D plots 3D plotting (surf(), mesh(), plot3()) Formatting

More information

Microsoft Office Word 2013 Intermediate. Course 01 Working with Tables and Charts

Microsoft Office Word 2013 Intermediate. Course 01 Working with Tables and Charts Microsoft Office Word 2013 Intermediate Course 01 Working with Tables and Charts Slide 1 Course 01: Working with Tables and Charts Sort Table Data Control Cell Layout Perform Calculations in a Table Create

More information

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer The American University in Cairo Excel 2000 prepared by Maha Amer Spring 2001 Table of Contents: Opening the Excel Program Creating, Opening and Saving Excel Worksheets Sheet Structure Formatting Text

More information

9 POINTS TO A GOOD LINE GRAPH

9 POINTS TO A GOOD LINE GRAPH NAME: PD: DATE: 9 POINTS TO A GOOD LINE GRAPH - 2013 1. Independent Variable on the HORIZONTAL (X) AXIS RANGE DIVIDED BY SPACES and round up to nearest usable number to spread out across the paper. LABELED

More information

Using ATI Catalyst Control Center to Configure Desktops & Displays

Using ATI Catalyst Control Center to Configure Desktops & Displays Using ATI Catalyst Control Center to Configure Desktops & Displays The following general instructions apply using CCC to configure displays. The ATI Catalyst Control Center (CCC) Desktops & Displays manager

More information

Activity: page 1/10 Introduction to Excel. Getting Started

Activity: page 1/10 Introduction to Excel. Getting Started Activity: page 1/10 Introduction to Excel Excel is a computer spreadsheet program. Spreadsheets are convenient to use for entering and analyzing data. Although Excel has many capabilities for analyzing

More information

Technical Documentation Version 7.3 Output

Technical Documentation Version 7.3 Output Technical Documentation Version 7.3 Output These documents are copyrighted by the Regents of the University of Colorado. No part of this document may be reproduced, stored in a retrieval system, or transmitted

More information

Word Creating & Using Tables. IT Training & Development (818) Information Technology

Word Creating & Using Tables. IT Training & Development (818) Information Technology Information Technology Word 2007 User Guide Word 2007 Creating & Using Tables IT Training & Development (818) 677-1700 training@csun.edu www.csun.edu/it/training Table of Contents Introduction... 1 Anatomy

More information

Excel 2013 Intermediate

Excel 2013 Intermediate Instructor s Excel 2013 Tutorial 2 - Charts Excel 2013 Intermediate 103-124 Unit 2 - Charts Quick Links Chart Concepts Page EX197 EX199 EX200 Selecting Source Data Pages EX198 EX234 EX237 Creating a Chart

More information

Creating a Basic Chart in Excel 2007

Creating a Basic Chart in Excel 2007 Creating a Basic Chart in Excel 2007 A chart is a pictorial representation of the data you enter in a worksheet. Often, a chart can be a more descriptive way of representing your data. As a result, those

More information

ARM : Features Added After Version Gylling Data Management, Inc. * = key features. October 2015

ARM : Features Added After Version Gylling Data Management, Inc. * = key features. October 2015 ARM 2015.6: Features Added After Version 2015.1 Gylling Data Management, Inc. October 2015 * = key features 1 Simpler Assessment Data Column Properties Removed less useful values, reduced height on screen

More information

User Manual MS Energy Services

User Manual MS Energy Services User Manual MS Energy Services Table of content Access 4 Log In 4 Home Page 5 Add pre-visualisations 6 Pre-visualisation with variables 7 Multiple pre-visualisations 8 Pre-visualisation window 8 Design

More information

Spreadsheet Warm Up for SSAC Geology of National Parks Modules, 2: Elementary Spreadsheet Manipulations and Graphing Tasks

Spreadsheet Warm Up for SSAC Geology of National Parks Modules, 2: Elementary Spreadsheet Manipulations and Graphing Tasks University of South Florida Scholar Commons Tampa Library Faculty and Staff Publications Tampa Library 2009 Spreadsheet Warm Up for SSAC Geology of National Parks Modules, 2: Elementary Spreadsheet Manipulations

More information

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0 SciGraphica Tutorial Manual - Tutorials 1and 2 Version 0.8.0 Copyright (c) 2001 the SciGraphica documentation group Permission is granted to copy, distribute and/or modify this document under the terms

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8 CS/NEUR125 Brains, Minds, and Machines Lab 6: Inferring Location from Hippocampal Place Cells Due: Wednesday, March 8 This lab explores how place cells in the hippocampus encode the location of an animal

More information

Why Should We Care? More importantly, it is easy to lie or deceive people with bad plots

Why Should We Care? More importantly, it is easy to lie or deceive people with bad plots Plots & Graphs Why Should We Care? Everyone uses plots and/or graphs But most people ignore or are unaware of simple principles Default plotting tools (or default settings) are not always the best More

More information

Plot four points A, B, C and D on the grid to make a rectangle ABCD of length 6 cm and width 4 cm. (2)

Plot four points A, B, C and D on the grid to make a rectangle ABCD of length 6 cm and width 4 cm. (2) Q1. (a) Here is a centimetre grid. Plot four points A, B, C and D on the grid to make a rectangle ABCD of length 6 cm and width 4 cm. (2) (b) Tick whether each statement is always true, sometimes true

More information

Middle School Math Course 3

Middle School Math Course 3 Middle School Math Course 3 Correlation of the ALEKS course Middle School Math Course 3 to the Texas Essential Knowledge and Skills (TEKS) for Mathematics Grade 8 (2012) (1) Mathematical process standards.

More information

Transient Stability Analysis with PowerWorld Simulator

Transient Stability Analysis with PowerWorld Simulator Transient Stability Analysis with PowerWorld Simulator T8: Viewing Transient Stability Results 2001 South First Street Champaign, Illinois 61820 +1 (217) 384.6330 support@powerworld.com http://www.powerworld.com

More information