curve(dtriang(x, min=3, mode=6, max=10), from = 2, to = 11, ylab="density")
## Alternative parametrization
curve(dtriang(x, min=3, mean=6, max=10), from = 2, to = 11, add=TRUE, lty=2)
##no density when min == mode == max
dtriang(c(1,2,3),min=2,mode=2,max=2)
Run the code above in your browser using DataLab