cell_violin: Violin plot of cell-cell similarity

Description Usage Arguments

Description

Take the mean of a correlation matrix all_cor of the cell types or features along its column

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
cell_violin(
  all_cor,
  metadata,
  feature,
  column_scale = T,
  row_scale = F,
  num_col = 1,
  box_plot = F,
  AP = list(),
  legend_col = 1
)

Arguments

all_cor

correlation matrix, with both colnames and rownmaes

metadata

the metadata for the items in the correlation matrix, does not need to be in the exact order or shape, but its rownames should match the rownames and colnames of all_cor

feature

cluster by which feature in the metadata

column_scale

zero the mean across columns, make standard deviation 1

num_col

number of columns in which the facets of the subplots will be arranged

AP

aesthetic parameters, cell_order controls the orderring of cells in the violin plot legend and other fields for plotting.

legend_col

in how many columns the legend should be


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.