create_geneview {wilson} | R Documentation |
Method for geneView creation
Description
Method for geneView creation
Usage
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).