jmp-l
[Top] [All Lists]

Re: How to change x axis values by another column?

To: jmp-l@lists.biostat.wustl.edu
Subject: Re: How to change x axis values by another column?
From: Fred Zhang <ieaggie2009@gmail.com>
Date: Wed, 18 Feb 2009 14:35:09 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=bn1EtHvnRWFfG0DHsyVV9T7JTVf4rJlEw3oeB9R6s7s=; b=Ex1Xe9qBmrh6I8piunevMtujGjb9LVi8cHHr8yzVsDT5gbNfQXOGe+9Z3+py7wj4PC nKVzO2X5gXA4ZKf8YJ6HSHQacrkGm0bPbChbNVR7P9dc3Qi48w4Tg1C5nfLSxekUqbDj g5ePmTxZ7OjXmbmJu/vOeqcML8fQHvOiIVDJY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=H984pPzqBbrw6K+P6QBAqki33kKul/B3CAILYuEmCKoZmxFtxIvdMZvzl/Yh0Vywjn PkRTITWkPar5liTeiMu94rYBBjNn6+kXTpLZc0IAmuQjBf5ZjiyKDvxDrcVdZHnOosUF 7H55v6WG6caKJ1HPk6PywgPTqOchm9cMpEups=
In-reply-to: <5E0B860F9BF8484B842ADEB3A1B905FB149764D4@mkb02.Danbury.PDC-USA.com>
References: <25e89e790902181117n7c9cad19s20a9ad85b67808e7@mail.gmail.com> <5E0B860F9BF8484B842ADEB3A1B905FB149764D4@mkb02.Danbury.PDC-USA.com>
Thanks, Emil
But I do not want to change the property of the text column Col_1, which is fixed as per requirements.
So how to achieve this then?

On Wed, Feb 18, 2009 at 2:26 PM, Friedman, Emil <efriedman@mannkindcorp.com> wrote:
How about using "date" instead of "quarter" and defining "date" as the middle day of the quarter?  That would give you a continuous X-axis.
 

------------------------------------------

Emil M Friedman, PhD
Statistician
Technical Assessments
MannKind Corporation
One Casper Street
Danbury, CT 06810

efriedman@mannkindcorp.com


http://www.statisticalconsulting.org

From: jmp-l-owner@lists.biostat.wustl.edu [mailto:jmp-l-owner@lists.biostat.wustl.edu] On Behalf Of Fred Zhang
Sent: Wednesday, February 18, 2009 2:17 PM
To: jmp-l@lists.biostat.wustl.edu
Subject: [jmp-l] How to change x axis values by another column?

Hi, I have the following 3 columns:
 
Col_1          Col_2            Col_3
00Qtr1         1                   1.4
00Qtr2         2                   1.5
00Qtr3         3                   1.46
00Qtr4         4                   1.6
01Qtr1         5                   1.54
01Qtr2         6                   1.58
01Qtr3         7                   1.69
01Qtr4         8                    1.6
02Qtr1         9                    1.62
...                ....                 ...
08Qtr4        28                   2.48
I have tried Fit Y(Col_3) by X(Col_2), because both are numeric data type, for linear regression.
In the picture box or plot, I want to repley X axis values {1, 2, 3, 4, ....} by
the values of Col_1, i.e. {00Qtr1, 00Qtr2, 00Qtr3, ...}
 
So how to revise the following JSL code to do that?
 
Thanks,
Fred
-----------------------------------------------------------------------------------------------
 biv = Bivariate(
 Y( : Col_3 ),
 X( : Col_2 ),
 Fit Line( {Line Color( "Red" )} ),
 SendToReport(
  Dispatch(
   {},
   "1",
   ScaleBox,
   {Scale( Linear ), Format( "Best" ), Min( 1 ), Max( 28 ),
   Inc( 4 )}
  ),
  Dispatch(
   {},
   "2",
   ScaleBox,
   {Scale( Linear ), Format( "Numeric" ), Min( 0 ),
   Max( 2.5 ), Inc( .5 )}
  ),
  Dispatch( {}, "Bivar Plot", FrameBox, Marker Size( 2 ) )
 )
);

<Prev in Thread] Current Thread [Next in Thread>