jmp-l
[Top] [All Lists]

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

To: mark4flies@aol.com
Subject: Re: How to change x axis values by another column?
From: Fred Zhang <ieaggie2009@gmail.com>
Date: Thu, 19 Feb 2009 08:33:27 -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:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=58JaZ3BRQwS/if/9tMDjYjcGody86SmguNw2xweLbqc=; b=SskxHQJc4HBZoB3R54LQoxFSQ+eqKd8Oy8um79Ywd/4ysurfD7Lcbq6HcxNQafxN+G uzDLsEZiTjaLtSiwzYdOrKcIu5dOU3VdcsTzS25WYvfCkI28/6abzxOBdfsTjcemwFcV cK8HfDpLZHeDtg1uI8yMFoE/bS/OIqtZIK8yo=
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 :cc:content-type; b=AZWoR/TP8N+9J4S+qieuOFhxgN1upW/iFXdZRfYwge+JDpsNhJZNLoeKBiQgtDQ7Xj VcSaXRykm/XjobDtcDbCfFeoBcpnwzbJGMEREhjC06MDSKNzODj9+9jaRxWQXzienLPk erWFpa8hR2iMJvfGiM9zBJGex/uxC8t2jlqe8=
In-reply-to: <C0CDCBEB-EFFC-4771-895B-92933140B6B2@aol.com>
References: <25e89e790902181117n7c9cad19s20a9ad85b67808e7@mail.gmail.com> <A4CE6EA1-AAD2-48C5-B156-27CBADE987E3@aol.com> <25e89e790902181324s302dd1bcx4bcdaec5c58c00e0@mail.gmail.com> <C0CDCBEB-EFFC-4771-895B-92933140B6B2@aol.com>
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>