xi2pi / RefCurv

RefCurv: A Software for the Construction of Pediatric Reference Curves

Home Page:https://refcurv.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing x-axis intervals of the percentile chart

xi2pi opened this issue · comments

In case you are familiar with programming, especially R, here are my thoughts (which I havent tested yet):

  • in the folger "R_model" there is a file "perc_model_flexible.R"
  • This file ("perc_model_flexible.R") is the core of RefCurv's operation; open it with any editor (like notepad or what fits for you)
  • Line 97 is:
    x_values <- seq(round(min(data_perc$x),1), round(max(data_perc$x),1), length.out = 100
  • you can try to change the number 100 to what ever you like; let us say 1000
  • then run RefCurv as normal and go for a model fitting; it might be, that it throws an error but maybe that does not matter
  • after running RefCurv, go to the "tmp" folder in the RefCurv folder
  • check the file "percentiles_chart.csv"; that is your resulting chart