Learn R Programming

formods (version 0.2.1)

FM_mk_error_fig: Generates `ggplot` Object with Error Message

Description

Takes a vector of messages and returns a ggplot object with the text in the figure. This can be used in automated figure generation to cascade an error message to the end user.

Usage

FM_mk_error_fig(msgs)

Value

ggplot object

Arguments

msgs

Vector of error messages

Examples

Run this code
FM_mk_error_fig("Oh nos! You've made a mistake!")

Run the code above in your browser using DataLab