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.
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")
)
Character. What message do you wish to show?
Numeric. Text size.
Character. Font name
Empty ggplot2 object (with a message
if set).
Empty ggplot2 object (with a message
if set).
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()
# 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