Learn R Programming

lares (version 4.8.4)

noPlot: 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,
  font = getOption("lares.font")
)

Arguments

message

Character. What message do you wish to show?

size

Numeric. Text size.

font

Character. Font name

See Also

Other Visualization: distr(), freqs_df(), freqs_list(), freqs_plot(), freqs(), gg_bars(), gg_pie(), plot_chord(), plot_survey(), plot_timeline(), summer(), theme_lares2(), theme_lares(), tree_var()

Examples

Run this code
# NOT RUN {
options("lares.font" = NA) # Temporal
noPlot(message = "No plot to show!")
# }

Run the code above in your browser using DataLab