plot_dotplot: This will create a bar plot with dots

Description Usage Arguments Details Examples

View source: R/plot_dotplot.R

Description

This will create a bar plot with dots

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
plot_dotplot(
  input,
  gene,
  color_by,
  facet_by = "NA",
  point_by,
  title = "",
  colors = NA,
  ncol = "NA",
  number_labels = T,
  text_sizes = c(20, 10, 5, 10, 5, 5),
  theme = "classic",
  alpha = 0.5,
  stackratio = 0.4,
  dotsize = 3,
  bar = T,
  binwidth = 0.005,
  link = FALSE
)

Arguments

input

Bioconductor’s ExpressionSet Class with bulk value stored in fData.

gene

to plot the expression level of

color_by

a pData variable

facet_by

a pData variable

point_by

a pData variable.

title

The title

colors

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

ncol

How many columns if faceting

number_labels

to show the cell numbers and cell percentage of each bar.

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

stackratio

the overlap of dots.

dotsize

the size of dots.

bar

the weighted mean.

binwidth

average the values when dots are within the range of (max-min)*binwidth.

link

link the dots from same patients in each panel.

Details

Utilize information stored in pData to control the plot display. Each point_by as a dot with a bar showing the weighted mean of all point_by dots.

Examples

1
plot_dotplot(ex_sc, gene = "ADCY7", color_by = "Skin", facet_by = "subCellType", point_by = "Patient")

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