phen_bar: phen_bar

Description Usage Arguments

View source: R/phen_plot.R

Description

Draw the presence/absence of a specified gene in a specified phenotype group in a barplot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
phen_bar(
  pav_obj,
  phen_name,
  gene_name,
  pav_colors = c("#F8766D", "#00BFC4"),
  bar_width = 0.8,
  x_text_size = NULL,
  x_title_size = NULL,
  y_text_size = NULL,
  y_title_size = NULL,
  legend_side = "top",
  legend_title_size = NULL,
  legend_text_size = NULL
)

Arguments

pav_obj

A PAV object.

phen_name

The name of phenotype.

gene_name

The name of gene. .

pav_colors

A vector of colors for presence and absence.

bar_width

A numeric vector giving the relative width of bars, ranging from 0 to 1.

x_text_size

The size of tick labels on x-axis.

x_title_size

The size of x-axis title.

y_text_size

The size of tick labels on y-axis.

y_title_size

The size of y-axis title.

legend_side

The position of legend.

legend_title_size

The size of legend title.

legend_text_size

The size of legend item labels.


SJTU-CGM/vPanG documentation built on Dec. 18, 2021, 11:59 a.m.