draw.mutation.type: Count each event type and draw pie chart

View source: R/WES.R

draw.mutation.typeR Documentation

Count each event type and draw pie chart

Description

This function is evry similar to SuppaEventPie. Here the pie is draw based on ggplot2.

Usage

draw.mutation.type(
  data,
  color = "jco",
  colid = 2,
  alpha = 0.8,
  title = "",
  border = "white"
)

Arguments

data

A data.frame or list object.

color

ggsci color palette

colid

If provide data.frame, column id need to be set

alpha

Alpha value in plot

title

Pie title

border

Border color

Value

ggplot2 object

Examples

draw.mutation.type(res$Func.refGene, title = "# of mutation")
or draw.mutation.type(res, col = 6, title = "# of mutation")

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.