plotMultiSorting: Plot the sorted data (two-dimensional)

Description Usage Arguments Value See Also Examples

View source: R/plotMultiSorting.R

Description

Plots two dimensions of the data as a scatter plot and the sorting of the data as lines, which connect the points. Therefore, the function ggplot from the ggplot2-package is used.

Usage

1
2
3
4
5
6
7
8
9
plotMultiSorting(
  x,
  xlab,
  ylab,
  main,
  dims = 1:2,
  point.size = 1,
  path.size = 1
)

Arguments

x

[multiSorting]
An object returned from multiSorting.

xlab

[character(1)]
Optional x axis label.

ylab

[character(1)]
Optional y axis label.

main

[character(1)]
Optional title of the plot.

dims

[integer(2)]
The dimensions to be plottet. Default is the first two.

point.size

[numeric(1)]
Non-negative size of the points in the plot.

path.size

[numeric(1)]
Non-negative size of the path in the plot.

Value

The ggplot object

See Also

multiSorting

Examples

1
2
3
x <- data.frame(x = sort(rnorm(20)), y = sort(rnorm(20)))
multSort <- multiSorting(x)
plotMultiSorting(multSort, point.size = 3, path.size = 2)

melaniehorn/GSignTest documentation built on July 11, 2021, 1:18 a.m.