Learn R Programming

lares (version 5.0.1)

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.

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 = Sys.getenv("LARES_FONT")
)

noPlot( message = "Nothing to show here!", size = 4, font = Sys.getenv("LARES_FONT") )

Arguments

message

Character. What message do you wish to show?

size

Numeric. Text size.

font

Character. Font name

Value

Empty ggplot2 object (with a message if set).

Empty ggplot2 object (with a message if set).

See Also

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

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

Examples

Run this code
# NOT RUN {
Sys.unsetenv("LARES_FONT") # Temporal
noPlot(message = "No plot to show!")
Sys.unsetenv("LARES_FONT") # Temporal
noPlot(message = "No plot to show!")
# }

Run the code above in your browser using DataLab