Group_cpgfeature_boxplot: Boxplot the methylation levels for groups based on CpG island...

View source: R/Box_plot.R

Group_cpgfeature_boxplotR Documentation

Boxplot the methylation levels for groups based on CpG island features.

Description

This function outputs the methylation levels in boxplot for one or more groups based on CpG island features, e.g., CpG island and CpG island shore features.

Usage

Group_cpgfeature_boxplot(
  genefeatureall_cpgfeature,
  groupnum = "all",
  ttest = TRUE,
  cpgfeaturelable = c("CpGisland", "Shore"),
  title = c("Group1", "Group2", "Group3"),
  col = NULL
)

Arguments

genefeatureall_cpgfeature

refers to the input file with group methylation levels and CpG island features.

groupnum

refers to the group number, with default "all" for all of the groups.

ttest

refers to whether to perform the Student t-test, with default TRUE.

cpgfeaturelable

refers to CpG island features, with default "CpGisland" and "Shore". Only one CpG island feature can also be available, e.g., "CpGisland".

title

refers to the figure title with default "Group1", "Group2" and "Group3".

col

refers to the boxplot colors, with default NULL.

Value

Outputs a boxplot figure with groups and CpG island features.

Examples

Group_cpgfeature_boxplot(genefeatureall_cpgfeature, groupnum = 1)
Group_cpgfeature_boxplot(genefeatureall_cpgfeature, groupnum = "all", ttest = TRUE, cpgfeaturelable = c("CpGisland", "Shore"), 
title = c("Group1", "Group2", "Group3"), col = c("blue", "red", "green"))


xiaowangCN/GeneDMRs documentation built on Nov. 22, 2023, 11:19 p.m.