plot_table: Use ggplot2 to plot a table

Description Usage Arguments Value Author(s) Examples

View source: R/plot_table.R

Description

You can use plot_table to draw table in ggplot2, but it only applies to expressions(see expression). For more information , you can see plotmath. But it's a ggplot2 object!

Usage

1
plot_table(Str, ncol, byrow = TRUE)

Arguments

Str

some expressions

ncol

the number f col

byrow

logical, the default is

Value

It will output a ggplot object that contains a table.

Author(s)

Chai

Examples

1
2
3
4
5
6
7
a1 <- c(
  "x %*% y", "x %/% y", "alpha", "sigma", "beta",
  "x == y", "frac(x,y)", "x %up% y", "hat(x)",
  "symbol(a)", "underline(x)"
)
plot_table(a1, 2)
plot_table(a1, 3)

ch documentation built on July 9, 2021, 9:07 a.m.