pc_plot {svs}R Documentation

Plotting Parallel Coordinates

Description

A function for plotting parallel coordinates.

Usage

pc_plot(
  x,
  col = "darkgrey",
  cex = 1,
  font = 1,
  family = "",
  pch = 20,
  pcol = col,
  pcex = cex,
  lcol = col,
  lwd = 1,
  lty = 1,
  acol = "black",
  alwd = 1,
  alty = 1,
  las = 1,
  add_scale = FALSE,
  main = NULL,
  sub = NULL
)

Arguments

x

A numeric matrix.

col

The color of the text labels, points and connecting lines: see colors.

cex

The character expansion factor: A numeric value to specify the size of the text labels and the points.

font

The font of the text labels: 1 for plain, 2 for bold, 3 for italic, and 4 for bold italic.

family

The font family of the text labels: "serif", "sans", "mono", or one of the Hershey fonts.

pch

The plotting character for displaying points: see points.

pcol

The color of the plotting character: see colors.

pcex

The character expansion factor of the plotting character: a numeric value to specify the size of the plotting character.

lcol

The color of the connecting lines: see colors.

lwd

The line width of the connecting lines: a numeric value to specify the width of the connecting lines.

lty

The line type of the connecting lines: 0 or "blank", 1 or "solid", 2 or "dashed", 3 or "dotted", 4 or "dotdash", 5 or "longdash", 6 or "twodash".

acol

The color of the parallel axes: see colors.

alwd

The line width of the parallel axes: a numeric value to specify the width of the parallel axes.

alty

The line type of the parallel axes: 0 or "blank", 1 or "solid", 2 or "dashed", 3 or "dotted", 4 or "dotdash", 5 or "longdash", 6 or "twodash".

las

The reading direction of the labels on the axes ("label axis style"): either a numeric value between 0 and 3 (see las in par), or a character value matching either "horizontal" or "vertical".

add_scale

Logical specifying whether to add a scale for the parallel axes (which are normalized).

main

A character string for the main title of the plot.

sub

A character string for the subtitle of the plot.

Value

A parallel coordinate plot.

Examples

SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
   header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
   stringsAsFactors = FALSE)
sca_SndT_Fra <- fast_sca(SndT_Fra)
pc_plot(sca_SndT_Fra$pos1, las = "vertical")

[Package svs version 3.1.1 Index]