plot_barplot: This will create a bar plot

Description Usage Arguments Details Examples

View source: R/plot_barplot.R

Description

This will plot a given gene via violin plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
plot_barplot(
  input,
  title = "",
  gene,
  color_by,
  facet_by = "NA",
  colors = NA,
  ncol = "NA",
  number_labels = T,
  text_sizes = c(20, 10, 5, 10, 5, 5),
  theme = "classic",
  alpha = 0.5
)

Arguments

input

The input data

title

The title

gene

if provided will color_by the gene

color_by

a pData variable

facet_by

a pData variable

colors

What colors to utilize for categorial data. Be sure it is of the proper length!

ncol

How many columns if faceting

text_sizes

a vector of title_size, axis_title, axis_text, legend_title, legend_text, facet_text, faults too c(20,10,5,10,5,5)

theme

the plot theme

Details

Utilize information stored in pData to control the plot display.

Examples

1
plot_violin(input, title = "Actb across clusters", gene = "Actb", color_by = "Timepoint", facet_by = "Cluster", size = 1, ncol = 3)

kgellatl/SignallingSingleCell documentation built on Dec. 29, 2021, 4:12 p.m.