Description Usage Arguments Examples
Plot a probability weighting function using base graphics.
1 2 3 4 |
my_title |
text, the title |
my_title_colour |
text, the title colour |
my_title_font_size |
numeric, the title font size |
my_x_label |
text, my_x_label |
my_y_label |
text, the my_y_label |
pwf |
function, the pwf |
par |
vector, the pwf_parameters |
draw_reference_line_flag |
logical, draw_reference_line_flag |
reference_line_colour |
text, reference_line_colour |
reference_line_style |
text, reference_line_style |
my_labels |
vector, labels |
my_label_positions |
vector, the coordinates for the labels |
font_scaling |
numeric, the scaling factor for the labels |
arrow_positions |
vector, the positions of arrow lines |
1 2 3 4 5 6 7 8 9 10 11 | plotProbW(my_title=expression(paste("Kahneman & Tversky (1992), ",
c==0.61)),
my_title_colour="black", my_title_font_size=4,
my_x_label = "p", my_y_label = "w(p)",
pwf=kt_pwf, par=c(c=0.61),
draw_reference_line_flag=TRUE, reference_line_colour="red",
reference_line_style="dotted",
my_labels=c(expression(paste(w(italic(p)) == frac(italic(p)^c,
(italic(p)^c + (1-italic(p))^c)^(1/c))))),
my_label_positions=list(c(0.4,0.8)),
font_scaling=1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.