draw.mutation.type.barplot: Draw bar plot

View source: R/WES.R

draw.mutation.type.barplotR Documentation

Draw bar plot

Description

Draw bar plot

Usage

draw.mutation.type.barplot(
  data,
  color = "jco",
  alpha = 0.8,
  title = "",
  x = "Sample",
  y = "Number of mutations (SNV+INDEL)",
  position = "stack",
  flip = FALSE
)

Arguments

data

A data.frame. Column names for ggplot2 :x=Sample, y=as.numeric(value), fill=variable

color

ggsci color palette

alpha

Color alpha

title

Titile of plot

x

X label

y

Y label

position

Value

ggplot2 object

Examples

data <- data.frame( variable = c("exonic","exonic","exonic","intronic","intronic","intronic"),
                    Sample = c("S1","S2","S3","S1","S2","S3"),
                    value = c(1,2,3,4,5,6)
)
draw.mutation.type.barplot(data)

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