plot: Plotting Data Stream Data and Clusterings

Description Usage Arguments Author(s) See Also Examples

Description

Methods to plot data stream data and clusterings.

Usage

1
2
3
4
5
6
7
8
9
    ## S3 method for class 'DSD'
plot(x, n = 500, col= NULL, 
	    pch= NULL, ..., method="pairs", dim = NULL, alpha = 0.6)
    ## S3 method for class 'DSC'
plot(x, dsd = NULL, n = 500,
	    col_points=NULL, col_clusters=c("red", "blue"),
	    weights=TRUE, scale=c(1,5), cex=1, pch=NULL, method="pairs", 
	    dim = NULL, type = c("auto", "micro", "macro", "both"), 
      assignment=FALSE, ...)

Arguments

x

the DSD or DSC object to be plotted.

dsd

a DSD object to plot the data in the background.

n

number of plots taken from the dsd to plot.

col, col_points, col_clusters

colors used for plotting.

weights

the size of the symbols for micro- and macro-clusters represents its weight.

scale

range for the symbol sizes used.

cex

size factor for symbols.

pch

symbol type.

method

method used for plotting: "pairs" (pairs plot), "scatter" (scatter plot) or "pc" (plot first 2 principal components).

dim

an integer vector with the dimensions to plot. If NULL then for methods "pairs" and "pc" all dimensions are used and for "scatter" the first two dimensions are plotted.

alpha

alpha shading used to plot the points.

type

Plot micro- or macro-clusters. Auto used the class of dsc to decide.

assignment

logical; show assignment area of micro-clusters.

...

further arguments are passed on to plot or pairs in graphics.

Author(s)

Michael Hahsler

See Also

DSC, DSD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
stream <- DSD_Gaussians(k=3, d=3)

## plot data
plot(stream, n=500)
plot(stream, method="pc", n=500)
plot(stream, method="scatter", dim=c(1,3), n=500)

## create and plot micro-clusters
dstream <- DSC_DStream(gridsize=0.1)
update(dstream, stream, 500)
plot(dstream)

## plot with data, projected on the first two principal components 
## and dimensions 2 and 3
plot(dstream, stream)
plot(dstream, stream, method="pc")
plot(dstream, stream, dim=c(2,3))

## plot micro and macro-clusters 
plot(dstream, stream, type="both")

stream documentation built on May 29, 2017, 9:29 a.m.