Learn R Programming

DataVisualizations (version 1.1.9)

Classplot: Classplot

Description

Allows to plot one time series or feauture with a classification as a labeled scatter plot with a line. The colors are the labels defined by the classification. Usefull to see if temporal clustering has time dependent variations and for Hidden Markov Models (see Mthrun/RHmm on GitHub).

Usage

Classplot(X, Y, Cls,

xlab = "X", ylab = "Y",

main = "Class Plot", Colors,

LineColor = "grey", LineWidth = 1, LineType = NULL,

Showgrid = TRUE, SaveIt = FALSE)

Arguments

X

[1:n] numeric vector or time

Y

[1:n] numeric vector of feature

Cls

[1:n] numeric vector of k classes

xlab

Optional, string

ylab

Optional, string

main

Optional, string

Colors

Optional, string

LineColor

Optional, name of color

LineWidth

Optional, number

LineType

Optional, string

Showgrid

Optional, boolean

SaveIt

Optional, boolean

Value

plotly object

See Also

DualaxisClassplot

Examples

Run this code
# NOT RUN {
##ToDo
# }

Run the code above in your browser using DataLab