how to eliminate outlier in spotfire box plots

前端 未结 1 1886
鱼传尺愫
鱼传尺愫 2021-01-15 02:34

Thanks for your help in advance.

Regards, Raj

相关标签:
1条回答
  • 2021-01-15 03:26

    Adding the values to MAX() values would skew the data even if it were possible. There are two hacks to do this though.

    1. Right Click > Properties > Y-Axis > set the MIN range value and MAX range values to something that would eliminate all outliers. This is really only suitable for box plots that are close in all values to each other (all percentiles)
    2. On your toolbar click Insert > Calculated Column > choose the correct data table and paste in the expression below. You will need to replace the [x-axisColumn] and the [y-axisColumn] with what ever is on the X and Y axis of your box plot. To find out what this is, right click on your box plot > properties > X-Axis and there it will tell you what your X-Axis column is. Do this for the Y-Axis as well. This will create a column called "Outlier" in your data table with three options: NotOutlier, UpperOutlier, LowerOutlier. You just need to uncheck "UpperOutlier" and "LowerOutlier" to remove your outliers.

    `

    case
    when [y-axisColumn]<(Q1([y-axisColumn]) - (1.5 * IQR([y-axisColumn]) OVER ([x-axisColumn]))) then "LowerOutlier"
    when [y-axisColumn]>(Q3([y-axisColumn]) + (1.5 * IQR([y-axisColumn]) OVER ([x-axisColumn]))) then "UpperOutlier"
    else "NotOutlier"
    end as [Outlier]
    

    `

    0 讨论(0)
提交回复
热议问题