Learn R Programming

ssMutPA (version 0.1.2)

mountain_plot: Plotting the density ridges plot.

Description

The function `mountain_plot` is used to draw a graph to reflect the distribution of the data.

Usage

mountain_plot(data, sample_class, Path_name)

Value

Density ridges plot

Arguments

data

A pathway activity score matrix,which row names represent the pathways and the column names are samples.

sample_class

A vector containing subtype labels of the samples.

Path_name

The names of the pathways that you want to show in the graph.The 'Path_name' must be included in the row names of the data.

Examples

Run this code
#load the data
data(Path_ES,sample_class)
#perform the function `mountain_plot`.
mountain_plot(data=Path_ES,sample_class=sample_class,Path_name=rownames(Path_ES)[c(12,20,74)])

Run the code above in your browser using DataLab