Question: Custom scale function #3610
Unanswered
parthmehta
asked this question in
Q&A
Replies: 1 comment 5 replies
-
It's Dec. 2022 now, how do you solve this problem? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have to display Weibull distribution plot as shown in the sample figure.
For Weibull distribution , formula for Y-Axis Scale is as:
ln(-ln(1-p))
where p=(i-0.3)/(n+0.4) and i is the rank of the observation. This scale is chosen in order to linearize the resulting plot for Weibull data. You can have a look at the Y Axis log scale as shown in the example graph below.
I tried standard scaleLog() but I need to customize the log function.
const y_scale = scaleLog().range([0, 100]);
Please guide for a solution.
Beta Was this translation helpful? Give feedback.
All reactions