Learn R Programming

blockr.ggplot (version 0.1.0)

new_ggplot_transform_block: ggplot transform block constructor

Description

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(), ...)

Value

A ggplot_transform_block object

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()

Examples

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

Run the code above in your browser using DataLab