cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

How to exclude data points starting with a specific word from a PCA and followed by a graph builder?

Hi,

I have a dataset where the sample name for some data points start with "Bad...". I want to exclude these data points starting with "Bad" from a PCA but they should still be visible in the plot.

After PCA I plot the PC1 and PC2 in graph builder and here I also want the same datapoints to be excluded but visible in the graph.

Is there a way to script this in JSL? So I don't need to manually exclude the data point from the data table.

I'm using JMP18.

Hope you can help. 

 

3 REPLIES 3
jthi
Super User

Re: How to exclude data points starting with a specific word from a PCA and followed by a graph builder?

You can use Select Where with Starts With to select those rows and then exclude them

Current Data Table() << Select Where(Starts With(:sample, "Bad")) << Exclude(1);

Then in graph builder, hold shift and click on red triangle to select show excluded rows

jthi_0-1741104187984.png

 

If you wish to show the values in Principal Components platform I think you would have to write a script for that using graphic script

-Jarmo
WhiteCow2000
Level II

Re: How to exclude data points starting with a specific word from a PCA and followed by a graph builder?

Hi, thank you for your reply!

 

Could you help me how the script would look if I want to exclude multiple files with specific sample names instead?

 

Thanks in advance

jthi
Super User

Re: How to exclude data points starting with a specific word from a PCA and followed by a graph builder?

If you are looking for full matches, contains() is one option.

-Jarmo

Recommended Articles