new_ggplot: Init a Annotation Plot

Description Usage Arguments Value

View source: R/new-ggplot.R

Description

new_ggplot() initializes a ggplot object, and all subsequent elements are part of the annotation diagram.

Usage

1
2
3
4
5
6
7
8
9
new_ggplot(
  data = NULL,
  mapping = aes(),
  width = NULL,
  height = NULL,
  dir = "right",
  inherit.aes = FALSE,
  plot = NULL
)

Arguments

data

NULL or a data frame.

mapping

default list of aesthetic mappings to use for plot.

width

a positive numeric, indicating the width of a row annotation.

height

a positive numeric, indicating the height of a column annotation.

dir

on of "right", "left", "top" or "bottom", indicating the position of the annotation plot.

inherit.aes

if FALSE, overrides the default aesthetics, rather than combining with them.

plot

NULL or a ggplot object.

Value

a modified gg object.


Hy4m/newplot documentation built on Dec. 17, 2021, 11:24 p.m.