MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting scattergram

  • To: mathgroup at
  • Subject: [mg51922] Re: Plotting scattergram
  • From: David Bailey <dave at>
  • Date: Fri, 5 Nov 2004 02:17:16 -0500 (EST)
  • References: <cma037$8qm$>
  • Sender: owner-wri-mathgroup at

Mukhtar wrote:
> Is there a way to plot a scattergram.  I could not find anyting in
> statistics section, where one would expect to find it.  I have two
> vectors X and Y that I need to plot against each other.  As of now I
> have to export data to excel and do it there which is very
> inconvenient. Thanks.
OK, let's start with a vector of X values and a vector of Y values:

Xset = Table[k + Random[], {k, 0, 10}];

Yset = Table[k + Random[], {k, 0, 10}];

Then to plot Y against X use:

ListPlot[Transpose[{Xset, Yset}]]

It is important to remember that the various packages are designed to 
augment Mathematica - so you have to look at them in conjunction with 
the core functionality of Mathematica.

David Bailey

  • Prev by Date: Re: Counting Runs
  • Next by Date: Re: Counting Runs
  • Previous by thread: Re: Plotting scattergram
  • Next by thread: Re: Re: Plotting scattergram