Kaboom_tb_g: Kaboom_tb_g

View source: R/table.R

Kaboom_tb_gR Documentation

Kaboom_tb_g

Description

This function is for plotting a table in a second with ggolot. The value would return to a ggplot object so you can add more themes at the end of the function. It accepts a dataframe and turns it into a matrix. The columns and row names would be used as the title of the table.

Usage

Kaboom_tb_g(head(mtcars),
    Var1= "X", Var2 ="Y",
    T_font=14, T_fill= "#0f0f0f",
    T_color= "white" ,T_grid = 'grey',
    fill=FALSE)

# Quick Start
Kaboom_tb_g(head(mtcars))

Arguments

data

Data frame

Var1

Name of row names, default is "X".

Var2

Name of row names, default is "Y".

T_font

Font of the row and col names

T_color

Color of the row and col names

T_fill

background color of the row and col names

T_grid

line color of the table (grid)

fill

fill each table with different colors based on the value

Karobben

Kaboom_tb_g(head(mtcars)) Kaboom_tb_g(head(mtcars), T_fill="steelble")

#Kaboom_bar(midwest[c(1:10,200:210, 300:310), c(3:8,ncol(midwest))], "state", "category", Var = "SEM", Facet_row = 'Variable', space = 'free', scales = 'free')

ggplot table


Karobben/ggkaboom documentation built on Nov. 18, 2022, 8:03 a.m.