myPCAplot: myPCAplot

View source: R/Visualization.R

myPCAplotR Documentation

myPCAplot

Description

Function to plot PCA

Usage

myPCAplot(
  df = NULL,
  group_by = NULL,
  text_size = 20,
  point_size = 2,
  alpha = 1,
  legend_position = "right",
  legend_point_size = NULL,
  ...
)

Arguments

df

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

group_by

Labels to use as colors.

text_size

Plot text size

point_size

Plot point size

alpha

Point transparency

legend_position

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

legend_point_size

Legend point size.

...

Arguments passed to other methods.

Value

A ggplot object containing the PCA plot.


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