plotTernary: Plot single triangle vs single factor with specification of...

Description Usage Arguments Value

View source: R/generateVisuals.R

Description

Plot single triangle vs single factor with specification of side, labels, and titles

Usage

1
2
3
4
5
6
7
8
9
plotTernary(
  ternary,
  factor,
  varIndex,
  title = NULL,
  ylab = NULL,
  xlab = NULL,
  save = FALSE
)

Arguments

save

Logical indicating whether to save produced plots in output folder

ternary:

Question object of type Triangle

factor:

Question object of type MCQ or MCQ_Checkbox Question object

varIndex:

int 1-3 indicating which side of the Triangle to use (1=left, 2=bottom, 3=right)

title:

String containing the title for the generated plot (optional)

ylab:

String containing the Y label for the generated plot (optional)

xlab:

Vector containing 2 strings to label the x axis in the negative and positive direction respectively (optional)

Value

a ggplot object


edixon1/spryngr documentation built on June 13, 2021, 10:43 a.m.