plot with error bars

Download 4125_Testdata.txt
View file detailsI am trying to create a point plot from a data file, with the first two columns, x,y, and the third column as the error in y.

I can make the pointplot with the first two columns, but trying to add in the third colum for the Errorplot in statistics program is not working.  Is there a way I can use this third column of my data file to be the yerrors= part of Errorplot command?

> restart;
> A := readdata("C:\\Documents and Settings\\Desktop\\Testdata.txt", 3);
[[1.14, 44.67, 0.3], [1.14, 44.4, 0.32], [1.23, 45.13, 0.24],

  [1.23, 44.93, 0.21], [1.3, 45.02, 0.21], [1.305, 44.47, 0.31],

  [1.34, 44.88, 0.32], [1.37, 45.19, 0.26], [1.39, 44.86, 0.2],

  [1.755, 45.31, 0.36]]
> B := readdata("C:\\Documents and Settings\\Christine\\Desktop\\Testdata.txt", 2);
[[1.14, 44.67], [1.14, 44.4], [1.23, 45.13], [1.23, 44.93], [1.3, 45.02],

  [1.305, 44.47], [1.34, 44.88], [1.37, 45.19], [1.39, 44.86], [1.755, 45.31]]
> (plots[pointplot])(B);
 

errorbar

It is a command included in the Maple Advisor Database library.

An example, from errorbar help page:

errorbar([seq([i,i^2,10/i],i=1..10)]);

error bar

<p>Yes, I had seen this in another post, but was not sure how to apply it to my list of data points and errors, or how to have it call my datafile for use.</p>

simple

With the library installed:

A := [[1.14, 44.67, .3], [1.14, 44.4, .32], [1.23, 45.13, .24], 
[1.23, 44.93, .21], [1.3, 45.02, .21], [1.305, 44.47, .31], 
[1.34, 44.88, .32], [1.37, 45.19, .26], [1.39, 44.86, .2], 
[1.755, 45.31, .36]];
errorbar(A);

produces the plot.

Thank you, I am sure this

Thank you, I am sure this will work once I get the library properly installed

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}