plot_discrete_weights: Plot weights for discrete viewpoints

Description Usage Arguments

View source: R/4-viewpoint-regression.R

Description

Plots regression weights for discrete viewpoints in a viewpoint regression model.

Usage

1
2
3
4
5
6
7
plot_discrete_weights(x, x_lab = "Viewpoint", y_lab = "Weight",
  colours = c("#B50000", "#11A3FF"), labels = x$viewpoint_labels)

## S3 method for class 'viewpoint_regression'
plot_discrete_weights(x,
  x_lab = "Viewpoint", y_lab = "Weight", colours = c("#B50000",
  "#11A3FF"), labels = x$viewpoint_labels)

Arguments

x

Viewpoint regression model object, as created by viewpoint_regression.

x_lab

Label for x axis.

y_lab

Label for y axis.

colours

Vector of colours to use.

labels

tibble providing textual labels for the viewpoints.


pmcharrison/hvr documentation built on Sept. 22, 2019, 4:32 a.m.