Jump to content

How can I create a flow that uses only select data points (by user markings or table selection) on a scatter plot to calculate and display best fit line without removing the unselected points from the plot?


Kom Son

Recommended Posts

Hello,

The least complicated solution would likely be if you could have two plots (adding a second plot that serves as a details visualization) - the user marks the data points of interest in plot 1, and the best line fit is shown in plot 2 which uses "Limit data using marking" using the marking from plot 1 to only work on/show those marked values.

Link to comment
Share on other sites

you could do it in the same plot if you used filtering rather than marking. But the plot would still be split in two sections, one for the filtered data and one for all data. You can do it by Properties > Subsets > then ticking both All data and Current filtering. Example in screenshotimage.png.bd0e6f6061d8c2bb3f03165bc9a8ac82.png

Link to comment
Share on other sites

Adding yet another option. Just as Gaia also suggested in the previous comment, I was trying to find a way to use Subsets but thought they had to be based on filtering - not the marking you mentioned. Well, looking at this again, I noticed that you can use Markings as subsets (see screenshot below). Using that, any marked rows would be displayed in a separate Subset. BestFitFromMarking.thumb.PNG.3d5e1baba910dac191bf7896813b3d9a.PNG

Link to comment
Share on other sites

Thanks for your responses. I found that the trend line calculation i.e R2, etc. do not change when using subsets. So I had opted for a details viz or a nested y-axis (both result in updated trend lines) but split plots. I was hoping there'd be a solution for a single dynamic plot based on the underlying script.

Link to comment
Share on other sites

Thank you! I just tested again, and was unable to recreate this - it seems to work fine for me using subsets (I tested this using version 12.0 HF.013). If you want to investigate that further, I recommend opening a support case in the Support Portal - https://support.tibco.com - so our support team can get access to more specific information about your environment and analysis to better assist you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...