Skip to contents

Plot single-cell smoothed expression magnitude heatmap

Usage

plot_exp_roll(
  gexp_roll_wide,
  hc,
  k,
  gtf,
  lim = 0.8,
  n_sample = 300,
  reverse = TRUE,
  plot_tree = TRUE
)

Arguments

gexp_roll_wide

matrix Cell x gene smoothed expression magnitudes

hc

hclust Hierarchical clustring result

k

integer Number of clusters

gtf

dataframe Transcript GTF

lim

numeric Limit for expression magnitudes

n_sample

integer Number of cells to subsample

reverse

logical Whether to reverse the cell order

plot_tree

logical Whether to plot the dendrogram

Value

ggplot A single-cell heatmap of window-smoothed expression CNV signals

Examples

p = plot_exp_roll(gexp_roll_example, gtf = gtf_hg38, hc = hc_example, k = 3)
#> Warning: `aes_()` was deprecated in ggplot2 3.0.0.
#>  Please use tidy evaluation idioms with `aes()`
#>  The deprecated feature was likely used in the ggtree package.
#>   Please report the issue at <https://github.com/YuLab-SMU/ggtree/issues>.
#> Warning: Arguments in `...` must be used.
#>  Problematic arguments:
#>  as.Date = as.Date
#>  yscale_mapping = yscale_mapping
#>  size = 0.2
#>  Did you misspell an argument name?