Learn R Programming

FreeSortR (version 1.3)

plotTerms: Plot of the terms used during verbalisation step

Description

plotTerms() produces a plot of the terms. The rows of array MatTerms are the stimuli and the columns are the terms.

Usage

plotTerms(MatTerms,ResMds,dim=c(1,2),type="correl",add=TRUE)

Arguments

MatTerms

Array of occurrences of terms

ResMds

Object of class SortingMds

dim

Vector of dimensions to be plotted (default is dim=c(1,2))

type

Indicates the type of plotting (default is type="correl" for correlations)

add

Indicates if the stimuli are added to the plot (if type="baryc")

Value

returns a matrix of correlation or a configuration of terms (depending on type).

Details

If type="correl", the correlations between occurrences of terms and dimensions of a Mds configuration are plotted. plotTerms() returns the correlation matrix.

If type="baryc", a barycentric representation of terms is used. If add=TRUE, the stimuli are added to this plot. plotTerms() returns the coordinates of terms.

Examples

Run this code
# NOT RUN {
  data(AromaSort)
  Aroma<-SortingPartition(AromaSort)
  resMds<-MdsSort(Aroma,ndim=2)
  data(AromaTerms)
  plotTerms(AromaTerms,resMds)
# }

Run the code above in your browser using DataLab