критическое значение Chi Square в r

qchisq(prob, df)
#df = number of restirctions
Successful Salmon