gg_barplot_2waytable: gg_barplot_2waytable, aka OOSAP::PlotMyTable

View source: R/Visualizations_tables.R

gg_barplot_2waytableR Documentation

gg_barplot_2waytable, aka OOSAP::PlotMyTable

Description

Takes a table and plots a gg barplot

Usage

gg_barplot_2waytable(
  MyTable,
  Title = "",
  legend.position = "bottom",
  PlotCombo = F,
  xlab = "",
  xtext_angle = 45,
  hjust = 0.9,
  vjust = 0.8,
  base_size = 10,
  returnlist = T,
  col_vector = col_vector,
  theme_b = theme_bw(base_size = base_size)
)

Arguments

MyTable

A 2way table (base R table())

Title

A title else ""

legend.position

legend position default "bottom"

PlotCombo

if T plots and count plots together

xlab

x axis label

xtext_angle

x axis label

hjust

if angle is 90 set to 1

vjust

if angle is 90 set to 0.5

base_size

numerical

returnlist

logical

col_vector

a vector of colors

theme

a ggplot theme, default theme_bw(base_size = base_size)

Value

A ggplot


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.