ScatterView: Scatter plot

Description Usage Arguments Value Author(s) See Also

View source: R/ScatterView.R

Description

Scatter plot supporting groups.

Usage

1
2
3
4
5
6
7
ScatterView(data, x = "x", y = "y", label = 0, label.top = TRUE,
  top = 0, toplabels = NULL, model = c("none", "ninesquare",
  "volcano", "rank")[1], groups = NULL, group_col = NULL,
  groupnames = NULL, auto_cut = TRUE, auto_cut_x = auto_cut,
  auto_cut_y = auto_cut, auto_cut_diag = auto_cut, x_cut = NULL,
  y_cut = NULL, slope = 1, intercept = NULL, display_cut = TRUE,
  legend = FALSE, main = NULL, xlab = x, ylab = y, ...)

Arguments

data

Data frame.

x

A character, specifying the x-axis.

y

A character, specifying the y-axis.

label

An integer or a character specifying the column used as the label, default value is 0 (row names).

label.top

Boolean, indicates whether label the name of top hits in the groups.

top

Integer, specifying the number of top terms in the groups to be labeled.

toplabels

Character vector, specifying terms to be labeled.

model

One of "none" (default), "ninesquare", "volcano", and "rank".

groups

Specify the colored groups. Optional groups include "topleft", "topcenter", "topright", "midleft", "midcenter", "midright", "bottomleft", "bottomcenter", "bottomright".

group_col

A vector of colors for specified groups.

groupnames

A vector of group names to show on the legend.

auto_cut

Boolean, take 1.5 fold standard deviation as cutoff.

auto_cut_x

Boolean, take 1.5 fold standard deviation as cutoff on x-axis.

auto_cut_y

Boolean, take 1.5 fold standard deviation as cutoff on y-axis.

auto_cut_diag

Boolean, take 1.5 fold standard deviation as cutoff on diagonal.

x_cut

An one or two-length numeric vector, specifying the cutoff used for x-axis.

y_cut

An one or two-length numeric vector, specifying the cutoff used for y-axis.

slope

A numberic value indicating slope of the diagonal cutoff.

intercept

A numberic value indicating intercept of the diagonal cutoff.

display_cut

Boolean, indicating whether display the dashed line of cutoffs.

legend

Whether show the color legend.

main

Title of the figure.

xlab

Title of x-axis

ylab

Title of y-axis.

...

Other available parameters in function 'geom_text_repel'.

Value

An object created by ggplot, which can be assigned and further customized.

Author(s)

Wubing Zhang

See Also

ScatterView


WubingZhang/ggView documentation built on Sept. 4, 2020, 4:28 p.m.