Skip to contents

Display an empty plot with a text in the middle of the window (for instance to specify that no plot can be drawn).

Usage

empty_graph(
  text = NULL,
  text.size = 1,
  title = NULL,
  title.size = 1.5,
  safer_check = TRUE
)

Arguments

text

Single character string of the message to display.

text.size

Single numeric value of the text size.

title

Single character string of the graph title.

title.size

Single numeric value of the title size (in points).

safer_check

Single logical value. Perform some "safer" checks (see https://github.com/safer-r)? If TRUE, checkings are performed before main code running: 1) R classical operators (like "<-") not overwritten by another package because of the R scope and 2) required functions and related packages effectively present in local R lybraries. Set to FALSE if this fonction is used inside another "safer" function to avoid pointless multiple checkings.

Value

An empty plot.

Author

Gael Millot <gael.millot@pasteur.fr>

Yushi Han <yushi.han2000@gmail.com>

Haiding Wang <wanghaiding442@gmail.com>

Examples

# simple example

empty_graph(text = "NO GRAPH")



# white page

empty_graph() # white page



# all the arguments

empty_graph(text = "NO GRAPH", text.size = 2, title = "GRAPH1", title.size = 1)