FeaturePlotDims: Plots 2d embedding with feature overlayed

View source: R/swne_plotting.R

FeaturePlotDimsR Documentation

Plots 2d embedding with feature overlayed

Description

Plots 2d embedding with feature overlayed

Usage

FeaturePlotDims(
  dim.scores,
  feature.scores,
  feature.name = NULL,
  x.lab = "tsne1",
  y.lab = "tsne2",
  alpha.plot = 0.5,
  quantiles = c(0.01, 0.99),
  show.axes = T,
  pt.size = 1,
  font.size = 12,
  color.palette = "YlOrRd"
)

Arguments

dim.scores

2D embedding coordinates. Must be N x 2 samples

feature.name

Name of feature

x.lab

X axis label

y.lab

Y axis label

alpha.plot

Data point transparency

quantiles

Quantiles to trim outliers from

show.axes

Plot x and y axes

pt.size

Sample point size

font.size

Font size for axis labels

color.palette

RColorbrewer palette to use

feature.score

Feature vector to overlay

Value

ggplot2 object with dim plot with feature overlayed


yanwu2014/swne documentation built on Aug. 5, 2023, 4:42 a.m.