plot_scatter: Plot scatter plots

Description Usage Arguments Value Author(s) Examples

View source: R/plot_methods.R

Description

Plot scatter plots, indicating the relationship between observed values and a continuous truth.

Usage

1
2
3
4
5
6
7
8
9
plot_scatter(
  cobraplot,
  title = "",
  stripsize = 10,
  titlecol = "black",
  pointsize = 3,
  doflip = FALSE,
  dolog = FALSE
)

Arguments

cobraplot

A COBRAPlot object.

title

A character string giving the title of the plot.

stripsize

A numeric value giving the size of the strip text, when the results are stratified by an annotation.

titlecol

A character string giving the color of the title.

pointsize

A numeric value giving the size of the plot characters.

doflip

A logical indicating whether to flip the axes when results are stratified by an annotation. By default (doflip = FALSE), stratification levels are shown as columns and methods as rows in the plot.

dolog

A logical indicating whether to log10-transform values before plotting.

Value

A ggplot object

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example, cont_truth = "logFC",
                                   aspects = "scatter")
cobraplot <- prepare_data_for_plot(cobraperf, colorscheme = "Dark2",
                                   incltruth = TRUE)
plot_scatter(cobraplot)

iCOBRA documentation built on April 17, 2021, 6:07 p.m.