summary: The default method for rendering tangram objects

summary.tangramR Documentation

The default method for rendering tangram objects

Description

A tangram is a summary, so it returns itself. Otherwise convert to a text representation.

Usage

## S3 method for class 'tangram'
summary(object, ...)

## S3 method for class 'cell'
summary(object, ...)

Arguments

object

object; the item to render

...

additional arguments passed to summary

Value

the text summary

Examples

summary(cell_label("123"))
summary(hmisc_iqr(rnorm(20)))
summary(hmisc_fraction(45, 137))
summary(tangram(1,1)   %>%
        row_header("row") %>%
        col_header(1,2,3) %>%
        add_col("A","B","C"))
summary(tangram(drug~bili, pbc))

spgarbet/tg documentation built on Feb. 21, 2023, 3:35 a.m.