plot_table {ch} | R Documentation |
Use ggplot2 to plot a table
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
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
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)
[Package ch version 0.1.0.2 Index]