Choose Language Hide Translation Bar

Community Trekker

Joined:

Oct 1, 2014

## Highlight certain points in bivariate plot

I've got a large number of points that I would like to show in a bivariate plot. Among these, I would like to highlight only a few points. However, changing their colour or the marker type does not do the trick because of the large number of points. Is it possible to increase the marker size of specific datapoints to make them stick out?

1 ACCEPTED SOLUTION

Accepted Solutions

Super User

Joined:

Jun 23, 2011

Solution

## Re: Highlight certain points in bivariate plot

With Graph Builder that is easy by using the size role. I am not aware of a built-in method for resizing individual points in Fit Y by X.

It is however possible using a graphics script.

Example

Names Default To Here(1);

dt = Open("\$SAMPLE_DATA/Big Class.jmp");

bv = Bivariate(Y(:Weight), X(:Height));

// Create a matrix of rows to highlight e.g.

r= dt << get rows where(:name=="ROBERT");

// Add big markers on top of the points of interest

Eval(

Eval Expr(

Report(bv)[Framebox(1)] << add graphics script(Marker(Marker size(10); Color State("red"),     Expr(:Height[r]), Expr(:Weight[r])))

)

);

2 REPLIES 2

Super User

Joined:

Jun 23, 2011

Solution

## Re: Highlight certain points in bivariate plot

With Graph Builder that is easy by using the size role. I am not aware of a built-in method for resizing individual points in Fit Y by X.

It is however possible using a graphics script.

Example

Names Default To Here(1);

dt = Open("\$SAMPLE_DATA/Big Class.jmp");

bv = Bivariate(Y(:Weight), X(:Height));

// Create a matrix of rows to highlight e.g.

r= dt << get rows where(:name=="ROBERT");

// Add big markers on top of the points of interest

Eval(

Eval Expr(

Report(bv)[Framebox(1)] << add graphics script(Marker(Marker size(10); Color State("red"),     Expr(:Height[r]), Expr(:Weight[r])))

)

);

Super User

Joined:

Jun 23, 2011

## Re: Highlight certain points in bivariate plot

Hey gandi2223​,

MS​ is right and gave you a robust solution.

if you need a softer approach for a one time fix try selecting the observations you want to sand out after fixing the following in the File>> Preferences