plotMarble: Plot single marble vs single factor with specification of...

Description Usage Arguments Value

View source: R/generateVisuals.R

Description

Plot single marble vs single factor with specification of sub-marble-index, axis, labels, and titles

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotMarble(
  marble,
  factor,
  varIndex,
  axis,
  title = NULL,
  ylab = NULL,
  xlab = NULL,
  save = FALSE
)

Arguments

save

Logical indicating whether to save produced plots in output folder

marble:

Question object of type Marble

factor:

Question object of type MCQ or MCQ_Checkbox

varIndex:

integer indicating the index of the Marble to be used

axis:

integer equal to 1 or 2 dictating x or y axis respectively

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.