msg: Plot a graph with a pre-installed R script

Description Usage Arguments Value Examples

View source: R/msg.R

Description

Plot a graph with a pre-installed R script

Usage

1
msg(fig = "3.6", show_code = TRUE, print_plot = TRUE, filter = 0)

Arguments

fig

Character. The figure number or the R script name, which is given in the book.

show_code

Logical. TRUE means the codes are shown in the console.

print_plot

Logical. TRUE means the graph is printed.

filter

Integer. The line numbers indicating which lines in the code are displayed (when positive) or hidden (when negative).

Value

A graph and the source code

Examples

1
# msg('3.6') msg('ChinaPop')

MSG documentation built on July 22, 2021, 1:06 a.m.