scatterplot_with_boxplot: Scatterplot with boxplots on both sides

Description Usage Arguments Details Value Author(s) Examples

View source: R/correlated_regions_scatterplot.R

Description

Scatterplot with boxplots on both sides

Usage

1
2
3
4
scatterplot_with_boxplot(x, y, subgroup = rep("unknown", length(x)),
    subgroup_col = structure(seq_along(levels(subgroup)), names = levels(subgroup)),
    main = NULL, xlab = NULL, ylab = NULL, xlim = range(x, na.rm = TRUE), ylim = range(y, na.rm = TRUE),
    text_list = NULL)

Arguments

x

values on x-axis

y

values on y-axis

subgroup

groups of data points

subgroup_col

colors for groups

main

title for the plot

xlab

labels on x-axis

ylab

labels on y-axis

xlim

range on x-axis

ylim

range on y-axis

text_list

additional text which is a named vector or list (if the text is mixed with character and numbers)

Details

Boxplots are on the left and bottom, the scatter plot is on the top right.

Value

No value is returned

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
scatterplot_with_boxplot(rnorm(40), rnorm(40), subgroup = sample(letters[1:2], 40, replace = TRUE))

jokergoo/epik documentation built on Sept. 28, 2019, 9:20 a.m.