Learn R Programming

huxtable (version 5.5.7)

stripes: Set background color stripes

Description

These convenience functions call map_background_color with by_rows or by_cols.

Usage

stripe_rows(ht, stripe1 = "white", stripe2 = "grey90")

stripe_columns(ht, stripe1 = "white", stripe2 = "grey90")

Arguments

ht

A huxtable.

stripe1

Color for rows/columns 1, 3, 5, ...

stripe2

Color for rows/columns 2, 4, 6, ...

Examples

Run this code

stripe_rows(jams)
stripe_columns(jams)
stripe_rows(jams, "red", "blue")

Run the code above in your browser using DataLab