0

I would like to plot in R following contour plots representing two dimensional cumulative distributon functions (CDF)

enter image description here

A CDF in 2 or more dimensions is not unique (Lopes et al. The two-dimensional Kolmogorov-Smirnov test) that's why there are 4 alternative plots (and probably some more).

So far I have no R/Matlab code to show. I don't think it's difficult but most likely very time consuming. There might out there something I could use.

EDIT Type 1 & 4 are more or less covered, but any help with 2 & 3 would be really appreciated. enter image description here enter image description here

EDIT2 Types 2 & 3 using geom_rect - as simple as it gets! enter image description here The sequence of recangles is ordered wrt the eucleadian distance of the data. This means, if we assume this generic ordering, there is possibly only one version of defining a 2D CDF instead of two. That would confirm the statement of Lopes et al.and other that there are only 2^N-1 (here 3) ways to define the CDF. Any thoughts?

mjs
  • 150
  • 1
  • 20
  • 1
    The one on the left and right seem easy enough to generate using a `z = f(x,y)` approach. The middle two look more challenging. I think some more info, details, and your code from your attempt would help move this forward. Related posts: [1 - functions of 2 variables](https://stackoverflow.com/q/16868074/8239061), [2 - contour isolines](https://stackoverflow.com/a/57007211/8239061). – SecretAgentMan Dec 13 '19 at 20:45
  • 1
    @SecretAgentMan thanks for the links. I will have a go myself and keep you posted. – mjs Dec 13 '19 at 20:52
  • ping me in [this chat](https://chat.stackoverflow.com/rooms/204228/discussion-for-https-stackoverflow-com-q-59329270-8239061). I've written a short bit of code to help you get started. Look forward to seeing your full attempt. – SecretAgentMan Dec 13 '19 at 21:04
  • @SecretAgentMan I am trying to join the chat room, but I was unsuccessful so far. I keep you posted if this changes AND I have something worth showing... – mjs Dec 16 '19 at 13:24

0 Answers0