wq_figure: Template for figure questions

Description Usage Arguments Examples

Description

Template for figure questions

Usage

1
2
wq_figure(output = "explain the figure here", figure = "sourcefile.R",
  figure_type = "new")

Arguments

output

Text that is displayed to the user.

figure

An R script that produces a figure that is displayed in the R plotting window.

figure_type

Either "new" or "add". "new" indicates that a new plot should be displayed, while "add" indicates that features are being added to a plot that is already displayed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# While writing a new lesson by hand just use:
wq_figure()

# If converting from another format to a swirl course you may want to sue the
# API:
wq_figure("Here we can see the curve of the normal distribution.",
 "normalplot.R", "new")

## End(Not run)

swirlify documentation built on May 28, 2019, 9:02 a.m.