plot_costs: Plot costs

Description Usage Arguments

Description

Plots observed costs for a viewpoint regression as extracted with get_costs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plot_costs(
  x,
  x_lab = "Cost (bits/chord)",
  y_lab = "Model",
  factor_lab = "Model type",
  factor_col = c("#E8E410", "#11A3FF", "#B50000")
)

## S3 method for class 'viewpoint_regression'
plot_costs(
  x,
  x_lab = "Cost (bits/chord)",
  y_lab = "Model",
  factor_lab = "Model type",
  factor_col = c("#E8E410", "#11A3FF", "#B50000")
)

Arguments

x

Viewpoint regression model as created with viewpoint_regression.

x_lab

Label for the x axis.

y_lab

Label for the y axis.

factor_lab

Label for 'model type' factor.

factor_col

Colours for 'model type' factor.


pmcharrison/hvr documentation built on April 14, 2020, 2:47 a.m.