noPlot: Plot Result with Nothing to Plot

Description Usage Arguments Value See Also Examples

View source: R/other_plots.R View source: R/other_plots.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
Sys.unsetenv("LARES_FONT") # Temporal
noPlot(message = "No plot to show!")
Sys.unsetenv("LARES_FONT") # Temporal
noPlot(message = "No plot to show!")

lares documentation built on June 9, 2021, 9:06 a.m.