noPlot: Plot Result with Nothing to Plot

View source: R/other_plots.R

noPlotR Documentation

Plot Result with Nothing to Plot

Description

This function lets the user print a plot without plot, with a customizable message. It is quite useful for Shiny renderPlot when using filters and no data is returned.

Usage

noPlot(message = "Nothing to show here!", size = 4.5, ...)

Arguments

message

Character. What message do you wish to show?

size

Numeric. Font size for message input.

...

Additional parameters passed to theme_lares().

Value

Empty ggplot2 object (with a message if set).

See Also

Other Visualization: distr(), freqs(), freqs_df(), freqs_list(), freqs_plot(), plot_chord(), plot_survey(), plot_timeline(), tree_var()

Examples

Sys.unsetenv("LARES_FONT") # Temporal
noPlot(message = "No plot to show!")
noPlot(background = "#FF5500", size = 7)

laresbernardo/lares documentation built on Oct. 23, 2024, 12:05 p.m.