Visualization Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See

Slides:



Advertisements
Similar presentations
Prepared by : Mahmoud A. Abu Hashish  Used to organize and analyze information  Made up of columns and rows  Columns and rows intersect.
Advertisements

1 Trieste, April 17 th 2008Lucio Zambon Electronic Graphic Interface for Global Archiving Technology: PHP, MySQL, JavaScript, JPGraph, etc Development.
DAY 8: MICROSOFT EXCEL – CHAPTER 5 Aliya Farheen February 5, 2015.
Copyright, © Qiming Zhou GEOG1150. Cartography Data Models for Computer Cartography.
Chapter 3 – Data Visualization © Galit Shmueli and Peter Bruce 2010 Data Mining for Business Intelligence Shmueli, Patel & Bruce.
More Flow Control Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
Copyright © 2014 Pearson Education, Inc. All rights reserved Chapter 2 Picturing Variation with Graphs.
Statistics for the Behavioral Sciences Second Edition Chapter 3: Visual Displays of Data iClicker Questions Copyright © 2012 by Worth Publishers Susan.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
Chapter 2 Graphs, Charts, and Tables – Describing Your Data
Chapter 2 Presenting Data in Tables and Charts
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 2-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
1 ETT 429 Spring 2007 Excel II. 2 Right click on cell  Format Cell Variety of Options  Number  Alignment  Font  Border  Patterns  Protection Formatting.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Excel Copyright © 2008 Prentice-Hall. All rights.
Charts and Macros Pretty Pictures. Charts Graphical display of information Often referred to as “Visualization” Allows a more innate grasp of numeric.
Descriptive statistics (Part I)
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel.
2-3.  In addition to the histogram, the frequency polygon, and the ogive, several other types of graphs are often used in statistics. They are the bar.
NU Data Excel Orientation Graphing of Screening Data and Basic Graphing Functions.
Managing Multiple Projects Lesson 9. Skills Matrix SkillsMatrix Skill Manage consolidated projectsCreate a consolidated project plan Create dependencies.
Introduction Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
INFORMATION TECHNOLOGY IN BUSINESS AND SOCIETY SESSION 19 – GETTING DATA AND VISUALIZING IT SEAN J. TAYLOR.
Statistics 300: Introduction to Probability and Statistics Section 2-2.
Math 116 Chapter 12.
Graphical Analysis. Why Graph Data? Graphical methods Require very little training Easy to use Massive amounts of data can be presented more readily Can.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Graphs Graphs are used to display data. They visually represent relationships between data. All graphs should have a title that identifies the variables.
The introduction to SPSS Ⅱ.Tables and Graphs for one variable ---Descriptive Statistics & Graphs.
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel Martin Schedlbauer, Ph.D.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
StatisticsStatistics Graphic distributions. What is Statistics? Statistics is a collection of methods for planning experiments, obtaining data, and then.
Basic File Input and Output Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
An Internet of Things: People, Processes, and Products in the Spotfire Cloud Library Dr. Brand Niemann Director and Senior Data Scientist/Data Journalist.
Introduction to MATLAB Damon Tomlin February 22, 2008 Lecture 3: Data Visualization & User Interfaces.
EXPLORING DATA LESSON 1 – 1 Day 2 Displaying Distributions with Graphs Displaying quantitative variables.
CTS130 Spreadsheet Lesson 9 - Building Charts. What is a Chart? A chart is a visual display of information in a worksheet. Charts can help you make comparisons,
How can we show information in a chart or graph? Bar Graphs Pie Charts.
Graphing.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 2-1 Chapter 2 Presenting Data in Tables and Charts Statistics For Managers 4 th.
Histograms: Summarizing Data 1. SUMMARIZING DATA Raw data, such as company records, often contains a wealth of information that would be of use in making.
Introduction to MATLAB Session 5 Simopekka Vänskä, THL 2010.
Descriptive statistics Petter Mostad Goal: Reduce data amount, keep ”information” Two uses: Data exploration: What you do for yourself when.
Linear Algebra Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
Introduction Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
Linear Algebra Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
Recap Plots with More than one Line Plots of Complex Arrays Line, Color and Mark Style Axis Scaling and Annotating Plots Subplots Polar Plots Logarithmic.
Chapter 3: Organizing Data. Raw data is useless to us unless we can meaningfully organize and summarize it (descriptive statistics). Organization techniques.
June 14, ‘99 COLORS IN MATLAB.
Basics Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
Plan for Today: Chapter 11: Displaying Distributions with Graphs Chapter 12: Describing Distributions with Numbers.
CCGPS Advanced Algebra Day 1 UNIT QUESTION: How do we use data to draw conclusions about populations? Standard: MCC9-12.S.ID.1-3, 5-9, SP.5 Today’s Question:
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
Slide Copyright © 2009 Pearson Education, Inc. Ch. 3.1 Definition A basic frequency table has two columns: One column lists all the categories of.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
Unit 8 – Spreadsheets Part 2 Spreadsheets Skills Lesson Part 1.
Find the favourite fruits of some children and make a pictogram.
Computing and Data Analysis
CHAPTER 1: Picturing Distributions with Graphs
Sample Column Chart- No Data Labels, no lines SOURCE:
Spreadsheets (Excel Tasks)
MATLAB Programming Basics Copyright © Software Carpentry 2011
Organizing, Displaying and Interpreting Data
Fig. 1 Visualization of spatial distribution of head hits in 38 collegiate football players (RSHI cohort) in a season of play. Visualization of spatial.
Presentation transcript:

Visualization Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See for more information. MATLAB Programming

MATLABVisualization Good science requires good visualizations.

MATLABVisualization Why use MATLAB for plots? Produces publication quality plots and images Coupled with computation program. Proper visualization might take exploration.

MATLABVisualization Simplest plot is a line plot: >> plot(M) Plot each column of M as a separate line.

MATLABVisualization Sample data sets: dow.txt : Daily closing value of Dow Jones Industrial Average, an index of the price of 30 stocks on the New York Sock Exchange sp.txt : Daily closing value of the Standard and Poors 500, a broader index containing 500 stocks.

MATLABVisualization Data looks like: Year Month Day Value …

MATLABVisualization Load data: >> dow = importdata(‘dow.txt’); >> sp = importdata(‘sp.txt’); Simple plot: >> plot(dow(:,4))

MATLABVisualization >> plot(dow(:,4))

MATLABVisualization >> plot(dow(:,4)) Was this 1987?

MATLABVisualization >> plot(dow(:,4)) What does the X axis mean?

MATLABVisualization >> dow(1,1:3) ans = Year Day Month

MATLABVisualization >> time = dow(1,:) + (dow(2,:)-1) / 12 + (dow(3,:)-1) / 30 / 12 Plot the Dow’s value versus time: >> plot(time, dow(:,4))

MATLABVisualization >> plot(time, dow(:,4))

MATLABVisualization What if we want to edit the plot?

MATLABVisualization What if we want to edit the plot?

MATLABVisualization What if we want to edit the plot? Provides access to plot details

MATLABVisualization What if we want to edit the plot? Change line Add markers Many other options.

MATLABVisualization Compare the Dow to the S&P: >> stocks = [dow(:,4) sp(:,4)]; >> plot(time, stocks); Plotting a matrix (stocks) against a vector(time) plots each column of the matrix with the shared X-axis.

MATLABVisualization >> plot(time, stocks);

MATLABVisualization Rescale the indices to start at the same place: >> d2 = dow(:,4) / dow(1:4); >> s2 = sp(:,4) / sp(1,4); >> plot(time, [d2 s2]);

MATLABVisualization >> plot(time, [d2 s2]);

MATLABVisualization MATLAB has utilities to plot many kinds of data: hist: histograms pie: pie charts bar, barh: bar charts Even many kinds of 3D charts: pie3 bar3 pareto

MATLABVisualization A lot of data is one dimensional… … what about 2-D data? Example: geographically oriented data. Ever wondered where people tweet the most?

MATLABVisualization Question: what places in Toronto are the most popular locations for people to send a geo- located tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid.

MATLABVisualization Question: what places in Toronto are the most popular locations for people to send a geo- located tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid. Data: a matrix of grid centers and the relative number of tweets in that spot.

MATLABVisualization Question: what places in Toronto are the most popular locations for people to send a geo- located tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid. Data: a matrix of grid centers and the relative number of tweets in that spot.

MATLABVisualization >> image(data);

MATLABVisualization >> image(data);

MATLABVisualization image(): Take either an N X M or N X M X 3 array. Third dimension is for three channels of a color image. Map each location a color using a colormap.

MATLABVisualization Data Colormap Image Only use first column because Data is 4x4

MATLABVisualization A colormap is a color guide that maps the values 0.0 to 64.0 to colors. Many colormaps… Just check… >> help colormaps …for all the options.

MATLABVisualization A colormap is a color guide that maps the values 0.0 to 64.0 to colors. Many colormaps… Just check… >> help colormaps …for all the options. What if our matrix has a different range?

MATLABVisualization >> imagesc(data); Scales the matrix to use the entire colormap.

MATLABVisualization Key: imagesc scales the data linearly. Our data: >> max(max(data)) 1.93 e+04 >> min(min(data)) 2.05 e-24 >> mean(mean(data)) Our data is scaled exponentially…

MATLABVisualization >> imagesc(log(data));

MATLABVisualization >> imagesc(log(data)), colormap gray;

MATLABVisualization >> imagesc(log(data)), colormap hot;

MATLABVisualization Conclusion: Imaging is a powerful way to explore data… … but be sure to take full advantage of the pattern in that data.

February 2011 created by Richard T. Guy Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See for more information.