Feature_pieplot: Pie plot based on different features.

View source: R/Pie_plot.R

Feature_pieplotR Documentation

Pie plot based on different features.

Description

This function outputs the pie plot of feature percentages in gene body or CpG island mainly for DMC sites with features.

Usage

Feature_pieplot(
  siteall_significant_feature,
  methdirection = "both",
  title = "Pie plot for feature",
  threeDplot = TRUE
)

Arguments

siteall_significant_feature

refers to the input file with features, mainly for DMC sites with features.

methdirection

refers to the methylation direction when the input file contains the methylation difference column i.e., Methdiff1 after Logic_regression(), which can be "hypo", "hyper" and "both", with the default "both" for both directions.

title

refers to figure titles, with the default "Pie plot for chromosome".

threeDplot

refers to whether to pie plot in three dimensions based on R pacakge plotrix, with the default TRUE.

Value

Outputs a pie figure in different features.

Examples

Feature_pieplot(siteall_significant_feature)
Feature_pieplot(siteall_significant_feature, methdirection = "hypo")
Feature_pieplot(siteall_significant_feature, title = c("Gene body", "CpG island"))
Feature_pieplot(siteall_significant_feature, title = c("Pie plot for Gene body", "Pie plot for CpG island"), threeDplot = FALSE)
Feature_pieplot(siteall_significant_feature, methdirection = "hyper", title = c("Pie plot for Gene body", "Pie plot for CpG island"))


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