Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wq_figure

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 "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

## 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

A Toolbox for Writing 'swirl' Courses

v0.5.3
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Chih-Cheng Liang [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.