cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
mfisher
Level III

Automatically include the value of a variable in a title?

In JSL, how can I automatically include the value of a column in a graph title? For example, if my data query only returns data for species_name ="Blue Crab", how can I automatically incorporate species_name into my graph title? In SAS, I would use a macro variable. How can JMP do this?
2 REPLIES 2

Re: Automatically include the value of a variable in a title?

I haven't messed around with titles, but I have used the parse function to make expressions from variables. Parse() is on JMP Scripting Guide p.428. It converts strings into expressions. So you can have a string consisting of the command to name the table, but you have your variable concatenated in there (e.g. "string" || variablename). Encapsulate that string into the parse() function. Give that a shot.

Clear as mud?
wmwinn
Level I

Re: Automatically include the value of a variable in a title?

Option1: Most graphs use the SET TITLE() command. Create a string variable and concatenate that into the Set Title() command.

Option2: Use the By variable. A graph will be created for each distinct species_name, including it in the Title.

hope that helps.

Recommended Articles