View source: R/parallelcoords.R
ParallelCoordinates | R Documentation |
Create a parallel coordinates plot to show multivariate data
ParallelCoordinates(
x,
opacity = 0.4,
group = NULL,
colors = ChartColors(5, "Spectral"),
reverse.axes = TRUE,
global.font.family = "Arial",
global.font.color = rgb(44, 44, 44, maxColorValue = 255),
label.font.family = global.font.family,
label.font.color = global.font.color,
label.font.size = 12,
label.rotate = FALSE,
tick.font.family = global.font.family,
tick.font.color = global.font.color,
tick.font.size = 10,
margin.top = 0,
margin.bottom = 0,
margin.left = 0,
margin.right = 0,
max.nvar = 100,
auto.resize = TRUE,
interactive = TRUE,
queue = FALSE,
queue.rate = NULL,
font.unit = "px",
width = NULL,
height = NULL,
...
)
x |
A dataframe containing multiple variables (as columns) |
opacity |
Opacity of the line colors as an alpha value (0 to 1). |
group |
An optional variable which is used to color the lines in plot.
It should be a vector with length equal to the number of rows in |
colors |
A vector of colors for the color in lines in plot. Note that only 6-digit
hex codes are accepted (8-digit hex results in black lines). If no |
reverse.axes |
By default this is |
global.font.family |
Character; font family for all occurrences of any font attribute for the chart unless specified individually. |
global.font.color |
Global font color as a named color in character format (e.g. "black") or an a hex code. |
label.font.family |
Character; label font family. |
label.font.color |
Label font color as a named color in character format (e.g. "black") or a hex code. |
label.font.size |
Integer; Label font size. |
label.rotate |
Boolean; whether to rotate the variable names on the chart. |
tick.font.family |
Character; tick label font family. |
tick.font.color |
Tick label font color as a named color in character format (e.g. "black") or a hex code. |
tick.font.size |
Integer; Tick label font size. |
margin.top |
Margin between plot area and the top of the graphic in pixels |
margin.bottom |
Margin between plot area and the bottom of the graphic in pixels |
margin.left |
Margin between plot area and the left of the graphic in pixels |
margin.right |
Margin between plot area and the right of the graphic in pixels |
max.nvar |
Numeric; Maximum number of variables that will be shown from |
auto.resize |
Whether the chart should resize automatically. It does not appear to work. |
interactive |
Whether the lines should be hidden/shown depending on mouse. |
queue |
Logical; whether lines should be added slowly to the plot |
queue.rate |
Specifies the speed if |
font.unit |
One of "px" of "pt". By default all font sizes are specified in terms of pixels ("px"). But changing this to "pt" will mean that the font sizes will be in terms points ("pt"), which will be consistent with font sizes in text boxes. |
width |
Numeric; Width of chart in pixels. |
height |
Numeric; Height of chart in pixels. |
... |
Parameters which are ignored. This is included so calls expecting the plotly implementation which had more parameters will not cause errors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.