plot.conceptMap: Plot a Concept Map

View source: R/plot.conceptMap.R

plot.conceptMapR Documentation

Plot a Concept Map

Description

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.

Usage

## S3 method for class 'conceptMap'
plot(x, whichPlot = "all", ...)

Arguments

x

An object of class conceptMap. This object must contain plotting data and attributes specific to the method used for creating the concept map.

whichPlot

A character string specifying which plot to display. Options depend on the method used to create the concept map:

"all"

Displays all available plots for the given method.

"heatmap"

Displays the heatmap plot (if available).

"silhouette"

Displays the silhouette plot (if available).

"network"

Displays the network plot (if available).

"cmds"

Displays the CMDs plot (if available).

The default is "all".

...

arguments to be passed to methods

Details

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.

Value

This function displays the specified plot(s) in the current graphical device.

Examples

# 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)


cmAnalysis documentation built on April 4, 2025, 4:27 a.m.