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 |
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: |
family |
The font family of the text labels: |
pch |
The plotting character for displaying points: see |
pcol |
The color of the plotting character: see |
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 |
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: |
acol |
The color of the parallel axes: see |
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: |
las |
The reading direction of the labels on the axes ("label axis style"): either a numeric value between |
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")