Description Usage Arguments Examples
Plot the utility function.
1 2 3 4 | plotUtility(my_title, my_title_colour, my_title_font_size, my_x_label, xmin,
xmax, my_y_label, fun, par, fun_colour, draw_reference_line_flag,
reference_line_colour, reference_line_style, my_labels, my_label_positions,
my_label_colours, my_label_font_sizes)
|
my_title |
text, the title of the chart. |
my_title_colour |
text, the title colour. |
my_title_font_size |
numeric, the title font size. |
my_x_label |
text, the x-axis label. |
xmin |
numeric, the xmin on the x-axis. |
xmax |
numeric, the xmax on the x-axis. |
my_y_label |
text, the y-axis label. |
fun |
Utility, an instance of the Utility class. |
par |
vector, the parameters for the utility function. |
fun_colour |
text, the colour of the utility function line. |
draw_reference_line_flag |
logical, a boolean flag determining whether or not to draw a y=x reference line. |
reference_line_colour |
text, the reference line colour. |
reference_line_style |
numeric, the reference line style. |
my_labels |
vector, a vector of text labels to draw. |
my_label_positions |
list, a list of coordinates for the text labels. |
my_label_colours |
vector, stores the colours for each text label. |
my_label_font_sizes |
vector, stores the font size of each text label. |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.