Skip to contents

Renders a minimal ggplot2 plot containing the supplied error message text and returns it as a Base64 data URI. Used as a safe fallback by rdesk_plot_to_base64() when plot generation fails. Returns NULL silently if ggplot2 is not installed.

Usage

rdesk_error_plot(message = "Error generating plot")

Arguments

message

Character string to display on the error plot. Defaults to "Error generating plot".

Value

A single-element character string (data URI) or NULL if ggplot2 is not available.