Description Usage Arguments Details Examples
Creates an interactive parallel coordinates plot detailing each dimension and the cluster associated with each observation.
1 2 3 
data 
A dataframe of numeric columns. 
clusters 
A named integer matrix of clusters where names are the row names
of the above dataframe and integers are the integer value of the row's associated cluster.
This can be obtained from a function such as 
colorScheme 
The color scheme of the plot. May be a preconfigured D3 ordinal color scheme or a vector of html colors (hex or named) of the same length as the number of clusters. 
width 
The width of the plot window. 
height 
The height of the plot window. 
labelSizes 
A number or list of any combination of parameters shown that define the label sizes.

lineSize 
A number to adjust the size of the lines. 
measures 
A list of functions that is any combination of parameters shown that define the measurements for intervals and average lines displayed.
Defaults to the options shown (median and 1st and 3rd quartile). 
Hover over lines to display row label
Click on a line to fade out all lines except the associated cluster
Click on another line to bold this line as well
Clicking a second time on a line will fade it out
1 2 3 4 5 6 7 8 9 10 11 12  # Barebones
df < state.x77
clus < kmeans(df, 5)$cluster
pacoplot(data = df, clusters = clus)
# With options
df < state.x77
clus < kmeans(df, 5)$cluster
pacoplot(data = df, clusters = clus,
colorScheme = c("red", "green", "orange", "blue", "yellow"),
labelSizes = list(yaxis = 16, yticks = 12),
measures = list(avg = mean))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.