Subscribe Bookmark RSS Feed

Highlight certain points in bivariate plot

gandi2223

Community Trekker

Joined:

Oct 1, 2014

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
Solution

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
Solution

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])))

    )

);

ron_horne

Super User

Joined:

Jun 23, 2011

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

12860_pastedImage_0.png