create_geneview: Method for geneView creation

Description Usage Arguments Details Value

View source: R/function.R

Description

Method for geneView creation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
create_geneview(
  data,
  grouping,
  plot.type = "line",
  facet.target = "gene",
  facet.cols = 2,
  colors = NULL,
  ylabel = NULL,
  ylimits = NULL,
  gene.label = NULL,
  plot.method = "static",
  width = "auto",
  height = "auto",
  ppi = 72,
  scale = 1
)

Arguments

data

data.table containing plot data

grouping

data.table metadata containing: column1 : key column2 : factor1

plot.type

String specifying which plot type is used c("box", "line", "violin", "bar").

facet.target

Target to plot on x-Axis c("gene", "condition").

facet.cols

Number of plots per row.

colors

Vector of colors used for color palette

ylabel

Label of the y-axis (default = NULL).

ylimits

Vector defining scale of y-axis (default = NULL).

gene.label

Vector of labels used instead of gene names (default = NULL).

plot.method

Choose which method used for plotting. Either "static" or "interactive" (Default = "static").

width

Set the width of the plot in cm (default = "auto").

height

Set the height of the plot in cm (default = "auto").

ppi

Pixel per inch (default = 72).

scale

Modify plot size while preserving aspect ratio (Default = 1).

Details

Width/ height limit = 500. If exceeded default to 500 and issue exceed_size = TRUE.

Value

Returns depending on plot.method list(plot = ggplot/ plotly object, width = width in cm, height = height in cm, ppi = pixel per inch, exceed_size = Boolean).


wilson documentation built on April 19, 2021, 5:07 p.m.