pav_hist: pav_hist

Description Usage Arguments

View source: R/pav_hist.R

Description

The genes can be divided into multiple types based on how many samples are shared. 'pav_hist()' integrate a ring chart and a histogram to showing the number of gene types.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pav_hist(
  pav_obj,
  show_ring = T,
  ring_pos_x = 0.5,
  ring_pos_y = 0.6,
  ring_r = 0.3,
  ring_label_size = NA,
  type_colors = NULL,
  x_title = "Sample Number",
  x_title_size = NULL,
  y_title = "Count",
  y_title_size = NULL,
  x_breaks = NULL,
  x_text_size = NULL,
  y_text_size = NULL
)

Arguments

pav_obj

A PAV object.

show_ring

A logical value indicating whether draw ring chart.

ring_pos_x

A numeric vector that specifies the x-location of the ring chart, ranging from 0 to 1.

ring_pos_y

A numeric vector that specifies the y-location of the ring chart, ranging from 0 to 1.

ring_r

The radius of the ring chart, ranging from 0 to 0.5.

type_colors

A named vector of colors for types. e.g. c("distributed" = "red")

x_title

The text for the x-axis title.

x_title_size

The size of x-axis title.

y_title

The text for the y-axis title.

y_title_size

The size of y-axis title.

x_breaks

A numeric vector of break values on the x-axis.

x_text_size

The size of tick labels on the x-axis.

y_text_size

The size of tick labels on the y-axis.

ring_labels_size

The size of labels on the ring chart.


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