Subscribe Bookmark RSS Feed

Repel overlapping text labels

Tzu-Chun

Occasional Contributor

Joined:

Oct 25, 2017

Sometimes, we have a gernal 2D plot with several overalpping labels as an example below:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:Age << Label( 1 );
For Each Row( Row State()=Labeled State(1) );
Graph Builder(
    Size( 528, 454 ),
    Show Control Panel( 0 ),
    Variables( X( :weight ), Y( :height ) ),
    Elements( Points( X, Y, Legend( 18 ) ) )
);

image.png

 

If we want to keep all the labels in the plot, one possible way is drag the labels to the right place. However, it become more difficalt when the data points are large. is there any possible way we can do as the same in R to repel overlapping text labels using JSL instead of drag the label one by one?

 

                                     Before                                                                              After

image.pngimage.png

Reference: https://cran.r-project.org/web/packages/ggrepel/vignettes/ggrepel.html

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson

Super User

Joined:

Jun 22, 2012

Solution

I support your request and I have heard the request before.  I am not aware of any way to do this currently in Graph Builder.

You should submit this enhancement request directly to 

     support@jmp.com

 

Jim
4 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

Solution

I support your request and I have heard the request before.  I am not aware of any way to do this currently in Graph Builder.

You should submit this enhancement request directly to 

     support@jmp.com

 

Jim
XanGregg

Staff

Joined:

Jun 23, 2011

There is a graph preference called Hide Overlapping Labels, which will try to move labels so they don't overlap, and will hide any that still do overlap. It doesn't move them far enough to need a tagline though.

Tzu-Chun

Occasional Contributor

Joined:

Oct 25, 2017

Hi Xan,

Thanks for the great idea on this discussion, but we might lost a lot of labels when the data set goes large or distributed as different clusters. Hope JMP will consider this issue to be on the list.
Tzu-Chun

Occasional Contributor

Joined:

Oct 25, 2017

Thanks Jim, I'll try to report to JMP support team to see if we can get this good feature in the future.