plot_arrow: Plot arrow

View source: R/plot_arrow.R

plot_arrowR Documentation

Plot arrow

Description

Plot an error indicating the direction of phenotype specificity.

Usage

plot_arrow(
  x = 1,
  xend = 1,
  y = 0,
  yend = 1,
  labels_x = c(x, xend),
  labels_y = c(yend * 0.8, yend * 0.2),
  labels = c("Broad\nphenotypes", "Specific\nphenotypes"),
  labels_alpha = 0.8,
  labels_size = 4,
  arrrow_size = 2,
  arrow_color = "grey50"
)

Arguments

x

x-coordinate of the arrow.

xend

x-coordinate of the arrow end.

y

y-coordinate of the arrow.

yend

y-coordinate of the arrow end.

labels_x

x-coordinates of the labels.

labels_y

y-coordinates of the labels.

labels

Labels for each end of the arrow.

labels_alpha

Transparency of the labels.

labels_size

Size of the labels.

arrrow_size

Size of the arrow.

arrow_color

Colour of the arrow.

Value

ggplot2 object.

Examples

plot_arrow()

neurogenomics/HPOExplorer documentation built on Aug. 24, 2024, 1:39 a.m.