myFeaturePlot: myFeaturePlot

View source: R/Visualization.R

myFeaturePlotR Documentation

myFeaturePlot

Description

Function to plot a feature

Usage

myFeaturePlot(
  df = NULL,
  feature = NULL,
  text_size = 20,
  point_size = 2,
  alpha = 1,
  low_color = "gray",
  high_color = "tomato",
  legend_position = "right",
  legend_point_size = NULL,
  order = TRUE,
  ...
)

Arguments

df

Data frame containing the PCA dimensions to plot and the feature to use as colors. PCA data columns should be named as "Dim1" and "Dim2"

feature

Feature to use as color scale.

text_size

Plot text size

point_size

Plot point size

alpha

Point transparency

low_color

Scale low color

high_color

Scale high color

legend_position

The position of the legend. It can take values as "top", bottom", "left", "right", or "none.

legend_point_size

Legend point size.

order

Whether the points should be ordered.

...

Arguments passed to other methods.

Value

A ggplot object containing the feature plot.


MartinLoza/RNAseqAnalysis documentation built on March 18, 2022, 2:13 a.m.