jmp-l
[Top] [All Lists]

A Robust Way to Adjust X-Y Axis Min/Max/Inc to Display Various Data Set

To: Michael Benson <mbenson@one.net>
Subject: A Robust Way to Adjust X-Y Axis Min/Max/Inc to Display Various Data Sets?
From: Fred Zhang <ieaggie2009@gmail.com>
Date: Thu, 19 Feb 2009 14:45:36 -0500
Cc: jmp-l@lists.biostat.wustl.edu
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=kRnm9cTe7/3km8AJ+bRrjB9uHa8hv2ZdxQquFYI99Mw=; b=vYjG9HTKibd634TbpZ695zO6NNxoy1PXaxpt7hwTLmLKSykaeH5boJw3Dlp3NTnvSt 7u1ED0sL5S7akjVy4Ds1L9CgNFJNZqXQqP+j6G4pqptZPNHS/zRwWesVv1ytXCx2RSQh 6kQ43CgZOi3BF2pSLiKyyrDMOt92/GOXw3yjA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=ZfAmtsG8TbAIAohe1oLulrwtzfTrwt0a4t8vALzZqqC8XgF9uMM2xzAavQD+tUYvU1 ktCa0htMbEWFhBcSN6vf56cvncFmskCRA5RfhraHk4vB80+U0Ncbt26NL5I4HNvlKRZA EYqFFvbSMWYaefdSzbg7KVFXTgyqmIrmdBMSE=
Michael
 
Thank you so much.
 
I have tried and tailored to my problem which works well.
 
Oh, by the way, I have another display problem.
Now I am using the same JSL code to plot the same type graphy over various data sets, which are far way different
on the range from one to the other.
Sometime, the JSL code with specified Min/Max/Increment on both X and Y axis works for one data set,
however, for other dataset, the display looks ugly and I have to manually adjust the axis setting.
 
So is there any good way in JSL to automaticelly set up the Axis to fit the data range?
 
Best,
Fred

On Thu, Feb 19, 2009 at 10:03 AM, Michael Benson <mbenson@one.net> wrote:
Try the script embedded in the JMP table I sent. It really does work,
though it can be improved.

Michael

----- Original message -----
From: "Fred Zhang" <ieaggie2009@gmail.com>
To: mark4flies@aol.com
Cc: jmp-l@lists.biostat.wustl.edu
Date: Thu, 19 Feb 2009 08:33:27 -0500
Subject: Re: [jmp-l] How to change x axis values by another column?

Hi, Mark

Thank you very much for the sample code.
I tried your script and ran the following one, but cannot get the lable
shown in the X-axis as expected.

Anything I missed in the code? Should I add more operations in the
Bivariate
command?

Best,
Feng

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

dt = Current Data Table*()*;

labels = Column*(1)* << Get Values;

values = Column*(2)* << Get Values;

Eval*(*Substitute*(*Expr*(*Column*(2)* << Value Labels*(*vvv,lll*)*;*)*,

Expr*(* vvv *)*,As List*(* values *)*,

Expr*(* lll *)*,labels
*

)

)*;

Bivariate*(*Y*(* :column*(3)* *)*,X*(* :column*(2))*,Fit Line*)*;

------------------------------------------------------
  ID              X              Y 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

On Wed, Feb 18, 2009 at 4:59 PM, Mark Bailey <mark4flies@aol.com> wrote:

> You want to use the values in column 2 but show the labels in column 1.
> Here is the script to do it:
>  dt = Current Data Table*()*;
>
> labels = Column*(**1**)* << Get Values;
>
> values = Column*(**2**)* << Get Values;
>
> Eval*(*
> Substitute*(*
> Expr*(*
> Column*(**2**)* << Value Labels*(*
> vvv,
> lll
> *)*;
> *)*,
> Expr*(* vvv *)*,
> As List*(* values *)*,
> Expr*(* lll *)*,
> labels
> *)*
> *)*;
>
> Note: not all JMP axes will respect this column property, but I don't know
> any other way.
>
> On Feb 18, 2009, at 4:24 PM, Fred Zhang wrote:
>
>  Sorry not to get your point.
> Given this example, which column property to add?
> How to do this in JSL?
>
>
>   Mark
>
> *They hate you if you're clever, and they despise a fool* ("Working Class
> Hero" - John Lennon)
>
> =

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