bearloga / tinydensR

A set of RStudio add-ins for playing with distribution parameters and visualizing the resulting probability density and mass functions.
20 stars 1 forks source link

Scale looks funny for k=0.75 #5

Closed groceryheist closed 5 years ago

groceryheist commented 5 years ago

Compared to rweibull the plot by tidydensR doesn't look quite right. The shape of the density looks pretty good, but the range of the Y axis is really high! This is probably because when k < 1 the density has a vertical asymptote at 0. I don't really know what you want to do about this, but maybe a partial solution could be keeping the Y axis fixed for all parameter values.

image

bearloga commented 5 years ago

I've been thinking about adding more customization options and I think this is a good enough reason for user-specified ylim. Maybe xlim too. I'll try adding that and we can see if it works.

bearloga commented 5 years ago

@groceryheist please let me know how you like the new options