expert_df <- data.frame(dist = c("norm","t"), #Distribution Name
wi = c(1/3,2/3), #Expert weights
param1 = c(0.3,0.40), #Parameter 1
param2 = c(0.05,0.05),# Parameter 2
param3 = c(NA,3)) #Parameter 3: Only t-distribution
# \donttest{
plot_expert_opinion(expert_df , weights = expert_df$wi)
# }
Run the code above in your browser using DataLab