I hope some more knowledged people in R can help.
Problem: I am trying for some time now to plot a Weibull probability plot with ggplott2. The 2-two factor Weibull should appear as a straight line in a double-logarithmic plot. But it is not straight or the line is gone... An example would be something like this https://www.mathworks.com/help/stats/wblplot.html
Background: I am doing some living calculations with the flexsurv and the survival packages. But I would like to use the ggplot2 environment to display it with more bells and whistles. Finally, I would like to add the failures to the line which was fitted in prior calculations.
All suggestions are welcome. :)
Here my sample code:
library(ggplot2)
ggplot(data.frame(x=c(0,30)), aes(x=x)) +
stat_function(fun = dweibull, args = list(shape = 2, scale = 15))
#coord_trans(x = "log10", y = "log10") # without the option the function appears, but not as straight line