blank_label_plot: Create blank ggplot with a label

View source: R/save_dye_screen_figs.R

blank_label_plotR Documentation

Create blank ggplot with a label

Description

The blank_label_plot() function is used to generate a blank plot which prints a given string of text. Used in the save_*_screen() family functions, to handle cases where one of the expected assignments (e.g. "hit", "sensitive", "none") have been given to no dyes.

Usage

blank_label_plot(.text, .text_preamble = "No dyes with assignment: ", ...)

Arguments

.text

a character string, appended after .text_preamble, and printed to the blank plot. Typically used to pass assignment to the label, e.g "hit"

.text_preamble

a character string, which appears directly before .text. Defaults to No dyes with assignment: "

...

additional named arguments, passed to geom_text()

Value

a ggplot2 object containing a blank plot with theme_void(), with the specified label. Will appear just as text when displayed.


taiawu/dsfworld_package documentation built on June 18, 2024, 5:39 a.m.