plot_body: Plots the body of a non-primitive function

Description Usage Arguments Value Warning See Also Examples

Description

Plots the body of a function so that you can easily see it while using other functions in this package. It can be piped into and will return the function that you put into it.

Usage

1
plot_body(.f, nudge_y = 0, font_size = 0.8, line_width = 110)

Arguments

.f

A function

nudge_y

Moves the function body up or down, number

font_size

Specifies text size, positive number

line_width

Specifies how wide a line can be, positive number

Value

text in plot window, also returns function

Warning

Functions with large bodies will be difficult to plot correctly

See Also

list_body

Examples

1
2
plot_body(lapply)
plot_body(strwrap, line_width = 90, font_size = .75, nudge_y = .12)

visuelledata/frite documentation built on May 17, 2019, 1:30 p.m.