취소
다음에 대한 결과 표시 
표시  만  | 다음에 대한 검색 
다음을 의미합니까? 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
언어 선택 변환 막대 숨기기
jmpbchoi
Level I

how to assign colors and markers to specific values

I have a graph built out, but I would like to assign colors and markers to specific values. I have 8 variables. I would like 5 of them to be a different color and the other 3 to be different markers. How would I go about doing this in the script?

2 채택된 솔루션

채택된 솔루션
txnelson
Super User

Re: how to assign colors and markers to specific values

You should be able to interactively change the the graph to the settings you want, and then to go to the red triangle, and select "Save Script".  The script generated will give you the JSL required to make the changes you want.

Jim

원본 게시물의 솔루션 보기

gzmorgan0
Super User (Alumni)

Re: how to assign colors and markers to specific values

This is just to add to Jim's reply. From the JMP main menu select Help>Scripting Index> All Categories find some of these table messages.

If you are learning JSL, look up Row State, in the JMP Scripting Guide.  The example code is meant for Big Class.jmp.

dt<<color by column(:sex);
dt<<marker by column(:sex);


dt<<select where(:sex=="F");
dt<<colors(14)<<markers(15);

dt<<select where(:sex=="M");
dt<<colors(8)<<markers(12);
dt<<clear select;

dt << select rows(1::5);
dt << Colors("Blue");
dt<<clear select;

원본 게시물의 솔루션 보기

2 응답 2
txnelson
Super User

Re: how to assign colors and markers to specific values

You should be able to interactively change the the graph to the settings you want, and then to go to the red triangle, and select "Save Script".  The script generated will give you the JSL required to make the changes you want.

Jim
gzmorgan0
Super User (Alumni)

Re: how to assign colors and markers to specific values

This is just to add to Jim's reply. From the JMP main menu select Help>Scripting Index> All Categories find some of these table messages.

If you are learning JSL, look up Row State, in the JMP Scripting Guide.  The example code is meant for Big Class.jmp.

dt<<color by column(:sex);
dt<<marker by column(:sex);


dt<<select where(:sex=="F");
dt<<colors(14)<<markers(15);

dt<<select where(:sex=="M");
dt<<colors(8)<<markers(12);
dt<<clear select;

dt << select rows(1::5);
dt << Colors("Blue");
dt<<clear select;

추천 글