Learn R Programming

OmicsPrepR (version 0.1.1)

plot_omics: Plot Omics Data (PCA, Heatmap, or Density)

Description

Visualizes omics datasets using PCA, heatmap, or density plot options.

Value

A plot object (for PCA and density) or a heatmap visualization.

Arguments

data

A numeric matrix or data frame containing omics measurements.

type

A character string specifying the visualization type. One of "pca", "heatmap", or "density".

Examples

Run this code
# \donttest{
data <- matrix(rnorm(100), nrow = 10)
plot_omics(data, type = "pca")
# }

Run the code above in your browser using DataLab