Isoline density of scatterplot and area within

조회 수: 12 (최근 30일)
Jenny Nij Bijvank
Jenny Nij Bijvank 2016년 6월 23일
댓글: Jenny Nij Bijvank 2016년 6월 27일
Hello,
I would like to make a (for instance 90%) isoline in a scatterplot, so that 90% of the data points have a higher density than this level, and calculate the area comprised within this contour. See picture for an example.
I already made a density histogram and intensity map with the hist3 function, and know that I have to use a Kernel density estimation, and probably the function contour, but I don't understand much of this, and some attempts with these functions did not work out. Can anyone help me with this?

답변 (1개)

M Bateni
M Bateni 2016년 6월 24일
편집: M Bateni 2016년 6월 24일
  댓글 수: 1
Jenny Nij Bijvank
Jenny Nij Bijvank 2016년 6월 27일
Thank you for the link. I tried it with my own data, and now I can plot the contour lines, which connect bins with the same amount (or percentage) of data points (with hist3 and contour function).
But I still don't know how to make an isoline so that x% of the data points have a higher density than this level. I am trying with the ksdensity function, but I don't really understand how to use it, and how to get the desired result.
I hope you can help!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by