10

I have a polygon layer. I drew a boxplot calculated from field area in the layer.

How can I select the features whose area value is within interquartile range (25%-75%)?

enter image description here

Kadir Şahbaz
  • 76,800
  • 56
  • 247
  • 389

1 Answers1

13

There are two expression functions (q1 and q3) which return %25 and %75 quartiles. You can use both in Select Features by Expression tool.

Docs:
q1: Returns the calculated first quartile from a field or expression.
q3: Returns the calculated third quartile from a field or expression.

$area > q1( $area ) and $area < q3( $area )

Different combinations can also be used.

Kadir Şahbaz
  • 76,800
  • 56
  • 247
  • 389
Noura
  • 3,429
  • 3
  • 20
  • 41