Subscribe Bookmark RSS Feed

How can I overlay bubble plot with regression?

rc_hertzy

Community Trekker

Joined:

Jun 23, 2011

Bubble plots are so different from a regression plot. Is there any way to overlay both onto the same graph?

I realize one must lose the animation slider and any other differences between the two, but both are Y vs X so there should be some way to do this.

Any ideas?

1 REPLY
rc_hertzy

Community Trekker

Joined:

Jun 23, 2011

Here is a manual way. I used it to overlay a 45 degree line onto a regression plot but also works for your bubble plot.

First, make your bubble lot and then separately obtain your regression line. I assume you do not want the raw data so be sure to click off Show Points in the Bivariate Fit red triangle. Then in that regression line graph, rt-clk Edit:Copy Frame Contents, then click on the target graph (bubble plot) to make it active, and rt-clk Edit:Paste Frame Contents. That places your regression line (contents of the regression frame) onto the bubble plot frame. You need to have the Arrow active, not the select (cross) tool, when right clicking. Interesting that at least as of JMP10, the two graphs do not need to be the same size. If the x-axes are not the same, the line is still accurate but might not fill the space: if the target x-axis is longer (wider) than the regression line plot, the line only goes to its original x-width.   I have not found a way to script this yet.