View source: R/Visualizations_tables.R
gg_barplot_2waytable | R Documentation |
Takes a table and plots a gg barplot
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)
)
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) |
A ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.