View source: R/plot.conceptMap.R
plot.conceptMap | R Documentation |
This function generates visualizations for an object of class conceptMap
.
Depending on the method used to create the concept map, different types of plots
(e.g., heatmap, silhouette, network, or CMDS plots) are available.
## S3 method for class 'conceptMap'
plot(x, whichPlot = "all", ...)
x |
An object of class |
whichPlot |
A character string specifying which plot to display. Options depend on the method used to create the concept map:
The default is |
... |
arguments to be passed to methods |
The function behaves differently depending on the method used to create
the concept map. The conceptMap
object must include attributes such as
method
(e.g., "kmeans", "network", or "cmds") and the corresponding plot
objects (e.g., heatmapPlot
, silhouettePlot
, etc.).
The following methods are supported:
"kmeans"
: Supports "heatmap"
and "silhouette"
plots.
"network"
: Supports "heatmap"
and "network"
plots.
"cmds"
: Supports "heatmap"
, "silhouette"
, and "cmds"
plots.
This function displays the specified plot(s) in the current graphical device.
# Simulate data with custom parameters:
set.seed(1)
myCMData <- simulateCardData(nSorters=40, pCorrect=.90, attributeWeights=c(1,1,1,1))
# Subject the data to sorter cluster analysis
myCMDataBySorters <- sorterMapping(myCMData)
# Subject sorter cluster 3 to concept mapping using default "network" method
myCMAnalysis3 <- conceptMapping(myCMDataBySorters[[3]])
# Visualise the concept map
plot(myCMAnalysis3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.