Learn R Programming

OpenRepGrid (version 0.1.14)

OpenRepGrid-overview: OpenRepGrid: Annotated overview of package functions.

Description

This documentation page contains an overview over the package functions ordered by topics. The best place to start learning OpenRepGrid will be the package website https://openrepgrid.org though.

Arguments

Functions sorted by topic

Manipulating grids

leftMove construct(s) to the left
rightMove construct(s) to the right
upMove construct(s) upwards
downMove construct(s) downwards

Loading and saving data

importGridcorImport GRIDCOR data files
importGridstatImport Gridstat data files
importGridsuiteImport Gridsuite data files
importScivescoImport sci:vesco data files
importTxtImport grid data from a text file
saveAsTxtSave grid in a text file (txt)

Analyzing constructs

Descriptive statistics of constructs Construct correlations distance Root mean square of inter-construct correlations Somers' D Principal component analysis (PCA) of construct correlation matrix Cluster analysis of constructs

Analyzing elements

Visual representation

Bertin plots
bertinMake Bertin display of grid data
bertinClusterBertin display with corresponding cluster analysis
Biplots
biplot2dDraw a two-dimensional biplot
biplotEsa2dPlot an eigenstructure analysis (ESA) biplot in 2D
biplotSlater2dDraws Slater's INGRID biplot in 2D
biplotPseudo3dSee 'biplotPseudo3d' for its use. Draws a biplot of the grid in 2D with depth impression (pseudo 3D)
biplotEsaPseudo3dPlot an eigenstructure analysis (ESA) in 2D grid with 3D impression (pseudo 3D)
biplotSlaterPseudo3dDraws Slater's biplot in 2D with depth impression (pseudo 3D)
biplot3dDraw grid in rgl (3D device)
biplotEsa3dDraw the eigenstructure analysis (ESA) biplot in rgl (3D device)
biplotSlater3dDraw the Slater's INGRID biplot in rgl (3D device)
biplotSimpleA graphically unsophisticated version of a biplot

Index measures

indexConflict1Conflict measure for grids (Slade & Sheehan, 1979) based on correlations
indexConflict2Conflict measure for grids (Bassler et al., 1992) based on correlations
indexConflict3Conflict or inconsistency measure for grids (Bell, 2004) based on distances
indexDilemmaDetect implicative dilemmas (conflicts)
indexIntensityIntensity index
indexPvaffPercentage of Variance Accounted for by the First Factor (PVAFF)
indexBiasCalculate 'bias' of grid as defined by Slater (1977)
indexVariabilityCalculate 'variability' of a grid as defined by Slater (1977)

Special features

alignByIdealAlign constructs using the ideal element to gain pole preferences
alignByLoadingsAlign constructs by loadings on first principal component
reorder2dOrder grid by angles between construct and/or elements in 2D

Settings

OpenRepGrid uses several default settings e.g. to determine how many construct characters to display by default when displaying a grid. The function settings can be used to show and change these settings. Also it is possible to store the settings to a file and load the settings file to restore the settings.

settingsShow and modify global settings for OpenRepGrid
settingsSaveSave OpenRepGrid settings to file
settingsLoadLoad OpenRepGrid settings from file

Grid datasets

OpenRepGrid already contains some ready to use grid data sets. Most of the datasets are taken from the literature. To output the data simply type Type the name of the dataset to the console and press enter.

Single grids

bell2010Grid data from a study by Haritos et al. (2004) on role titles; used for demonstration of construct alignment in Bell (2010, p. 46).
bellmcgorry1992Grid from a psychotic patient used in Bell (1997, p. 6). Data originated from a study by Bell and McGorry (1992).
boekerGrid from seventeen year old female schizophrenic patient undergoing last stage of psychoanalytically oriented psychotherapy (Boeker, 1996, p. 163).
fbb2003Dataset used in A manual for Repertory Grid Technique (Fransella, Bell, & Bannister, 2003b, p. 60).
feixas2004Grid from a 22 year old Spanish girl suffering self-worth problems (Feixas & Saul, 2004, p. 77).
mackay1992Dataset Grid C used in Mackay's paper on inter-element correlation (1992, p. 65).
leach2001a, leach2001bPre- (a) and post-therapy (b) dataset from sexual child abuse survivor (Leach, Freshwater, Aldridge, & Sunderland, 2001, p. 227).
raeithelGrid data to demonstrate the use of Bertin diagrams (Raeithel, 1998, p. 223). The context of its administration is unknown.
slater1977aDrug addict grid dataset from (Slater, 1977, p. 32).
slater1977bGrid dataset (ranked) from a seventeen year old female psychiatric patient (Slater, 1977, p. 110) showing depression, anxiety and self-mutilation. The data was originally reported by Watson (1970).

Multiple grids

NOT YET AVAILABLE

Functions for developers

OpenRepGrid: internal functions overview for developers.

Below you find a guide for developers: these functions are usually not needed by the casual user. The internal functions have a twofold goal 1) to provide means for advanced numerical grid analysis and 2) to facilitate function development. The function for these purposes are internal, i.e. they are not visible in the package documentation. Nonetheless they do have a documentation that can be accesses in the same way as for other functions. More in the details section.

Functions for advanced grid analysis

The package provides functions to facilitate numerical research for grids. These comprise the generation of random data, permutation of grids etc. to facilitate Monte Carlo simulations, batch analysis of grids and other methods. With R as an underlying framework, the results of grid analysis easily lend themselves to further statistical processing and analysis within R. This is one of the central advantages for researchers compared to other standard grid software. The following table lists several functions for these purposes.

randomGrid
randomGrids
permuteConstructs
permuteGrid
quasiDistributionDistanceSlater

Modules for function development

Beside the advanced analysis feature the developer's functions comprise low-level modules to create new functions for grid analysis. Though the internal structure of a repgrid object in R is simple (type e.g. str(bell2010, 2) to get an impression), it is convenient to not have to deal with access on this level. Several function like e.g. getElementNames are convenient wrappers that perform standard tasks needed when implementing new functions. The following table lists several functions for these purposes.

getRatingLayerRetrieve grid scores from grid object.
getNoOfConstructsGet the number of constructs in a grid object.
getNoOfElementsGet the number of elements in a grid object.
dimGet grid dimensions, i.e. constructs x elements.
getScaleGet minimum and maximum scale value used in grid.
getScaleMidpointGet midpoint of the grid rating scale.
getConstructNamesGet construct names.
getConstructNames2Get construct names (another newer version).
getElementNamesRetrieve element names of repgrid object.
bindConstructsConcatenate the constructs of two grids.
doubleEntryJoin the constructs of a grid with the same reversed constructs.

Other internal functions

importTxtInternal

Author

Current members of the OpenRepGrid development team: Mark Heckmann. Everyone who is interested in developing the package is invited to join.

The OpenRepGrid package development is hosted on github (https://github.com/markheckmann/OpenRepGrid). The github site provides information and allows to file bug reports or feature requests. Bug reports can also be emailed to the package maintainer or issued on https://openrepgrid.org under section Suggestions/Issues. The package maintainer is Mark Heckmann <heckmann(dot)mark(at)gmail(dot)com>.