wq_figure {swirlify} | R Documentation |
Template for figure questions
Description
Template for figure questions
Usage
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 |
Examples
## 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)
[Package swirlify version 0.5.3 Index]