PlotEnrichPieChart: Create a pie chart for compound classes

View source: R/enrich_stats.R

PlotEnrichPieChartR Documentation

Create a pie chart for compound classes

Description

This function creates a pie-chart for compound classes in the enrichment analysis if the library is based on chemical ontologies.

Usage

PlotEnrichPieChart(
  mSetObj = NA,
  enrichType,
  imgName,
  format = "png",
  dpi = 72,
  width = 8,
  maxClass = 15,
  colPal = "Set1"
)

Arguments

mSetObj

Input the name of the created mSetObj (see InitDataObjects)

enrichType

enrichType

imgName

Input a name for the plot

format

Select the image format, "png", or "pdf".

dpi

Input the dpi. If the image format is "pdf", users need not define the dpi. For "png" images, the default dpi is 72. It is suggested that for high-resolution images, select a dpi of 300.

width

Numeric, input the width, the default is 8.

maxClass

Numeric, input the maximum number of lipid classes to include in the pie-chart. By default this is set to 15.

colPal

Character, input the preferred R Color Brewer palette to be used for the pie chart. By default this is set to "Set1".


xia-lab/MetaboAnalystR documentation built on Dec. 23, 2024, 3:44 p.m.