Learn R Programming

rEMM (version 0.1-2)

plot: Visualize EMM Objects

Description

Visualize EMM objects.

Usage

## S3 method for class 'EMM,missing':
plot(x, y, method=c("MDS", "graph", "state_counts", 
    "transition_counts"), data = NULL, 
    parameter=NULL, ...)

Arguments

x
an EMM object.
y
unused (just for compatibility with the generic for plot in graphics)
method
see details section.
data
Project the state centers onto these data.
parameter
a list of parameters for plotting.
...
further arguments passed on to plot.default.

Details

"MDS" projects the state centers into 2-dimensional space.

"graph" produces a graph representation of the EMM.

"state_counts" produces a barplot for state counts.

"transition_counts" produces a barplot for transition counts.

The following plotting parameters are currently supported: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

See Also

EMM

Examples

Run this code
data("EMMTraffic")
emm <- EMM(measure="eJaccard", threshold=0.2)
emm <- build(emm, EMMTraffic)

op <- par(mfrow = c(2, 2), pty = "s")
plot(emm, method="graph", main="Graph (plain)", 
    parameter=list(state_counts=FALSE, arrow_width=FALSE))
plot(emm, method="graph", main="Graph")
plot(emm, method="MDS", main="MDS projection", 
    xlim=c(-0.5,0.5), ylim= c(-0.5,0.5))
plot(emm, method="MDS", data = EMMTraffic, 
	main = "Projection of centers on data")
par(op)

Run the code above in your browser using DataLab