Skip to contents

Creates a specialized block for ggplot2-based visualizations. This block returns ggplot objects as data, allowing ggplot blocks to be chained together (e.g., for combining plots with patchwork). Custom output methods ensure plots are displayed properly rather than as data tables.

Usage

new_ggplot_transform_block(server, ui, class, ctor = sys.parent(), ...)

Arguments

server

Server function for the block

ui

UI function for the block

class

Character vector of CSS classes for the block

ctor

Constructor environment (default sys.parent())

...

Additional arguments forwarded to blockr.core::new_block()

Value

A ggplot_transform_block object

Examples

# This is a low-level constructor typically used by other block creators
# See new_ggplot_block() for user-facing examples