Cpgfeature_boxplot: Internal Use Function. That boxplots the methylation levels...

View source: R/Box_plot.R

Cpgfeature_boxplotR Documentation

Internal Use Function. That boxplots the methylation levels for one group based on CpG island features.

Description

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

Usage

Cpgfeature_boxplot(
  genefeatureall_cpgfeature,
  groupnum = 1,
  ttest = TRUE,
  cpgfeaturelable = c("CpGisland", "Shore"),
  title = "Group1",
  col = NULL,
  yaxislabel = TRUE
)

Arguments

genefeatureall_cpgfeature

refers to output of Region_match as well. the output of gene or genebody match with cpgi features, e.g., all genes in promoter or exon or intron regions.

groupnum

refers to the group number, can be NULL if without groups but the colnames should have "group" name like CpGislandgroup or Shoregroup, can also be automatically set in the Group_feature_boxplot function.

ttest

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

cpgfeaturelable

refers to CpG island features, with default CpGisland" and "Shore".

title

refers to main text of title with default "Group1".

col

refers to colors, with default NULL.

yaxislabel

refers to the label of y axis, with default TRUE, but the yaxislabel will be set to FALSE when Group_feature_boxplot function is used for only one y axis in multiple groups.

Value

Outputs boxplot figure.

Examples

Cpgfeature_boxplot(genefeatureall_cpgfeature, groupnum = 1, ttest = TRUE, cpgfeaturelable = c("CpGisland", "Shore"), title = "Group1", col = "blue")


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