Learn R Programming

OpenRepGrid (version 0.1.17)

Tools to Analyze Repertory Grid Data

Description

Analyze repertory grids, a qualitative-quantitative data collection technique devised by George A. Kelly in the 1950s. Today, grids are used across various domains ranging from clinical psychology to marketing. The package contains functions to quantitatively analyze and visualize repertory grid data (e.g. 'Fransella', 'Bell', & 'Bannister', 2004, ISBN: 978-0-470-09080-0). The package is part of the The package is part of the project.

Copy Link

Version

Install

install.packages('OpenRepGrid')

Monthly Downloads

401

Version

0.1.17

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Heckmann

Last Published

March 2nd, 2025

Functions in OpenRepGrid (0.1.17)

addVarianceExplainedToBiplot2d

Adds the percentage of the sum-of-squares explained by each axis to the plot.
angleOrderIndexes2d

Make indexes to order grid by angles in given dimensions.
alignByLoadings

Align constructs by loadings on first principal component.
biplotEsa2d

Plot an eigenstructure analysis (ESA) biplot in 2D.
OpenRepGrid-overview

OpenRepGrid: Annotated overview of package functions.
bertinCluster

Bertin display with corresponding cluster analysis.
biplot3d

Draw grid in rgl (3D device).
OpenRepGrid

OpenRepGrid: an R package for the analysis of repertory grids.
biplotDraw

biplotDraw is the workhorse doing the drawing of a 2D biplot.
bind

Concatenate the constructs of two grids.
biplotEsa3d

Draw the eigenstructure analysis (ESA) biplot in rgl (3D device).
calcCoordsBorders

Coordinates of a surrounding rectangle in direction of a given vector.
addAvgElement

Add a new average element
biplotEsaPseudo3d

Plot an eigenstructure analysis (ESA) in 2D grid with 3D impression (pseudo 3D).
biplotPseudo3d

Draws a biplot of the grid in 2D with depth impression (pseudo 3D).
biplotSlater3d

Draw the Slater's INGRID biplot in rgl (3D device).
biplotSlaterPseudo3d

Draws Slater's biplot in 2D with depth impression (pseudo 3D).
constructPca

Principal component analysis (PCA) of inter-construct correlations.
constructPcaLoadings

Extract loadings from PCA of constructs.
convertImportObjectToRepGridObject

convertImportObjectToRepGridObject.
data-bell2010

Grid data from Bell (2010).
bertin

Make Bertin display of grid data.
apply_pb

apply with a progress bar
convertScivescoImportObjectToRepGridObject

Convert the returned object from the sci:vesco import function into a repgrid object.
data-bellmcgorry1992

Grid data from Bell and McGorry (1992).
decouple

decouple a grid
cascade

make ascending and descending vector
elementCor

Calculate the correlations between elements.
elementRmsCor

Root mean square (RMS) of inter-element correlations.
dim.gridlist

Number of constructs and elements all repgrids in gridlist
biplotSimple

A graphically unsophisticated version of a biplot.
biplotSlater2d

Draws Slater's INGRID biplot in 2D.
getRatingLayer

get rating layer
dim.repgrid

Return size of a grid.
getNoOfElements

Get number of elements
dist_minmax

Calculate minimal and maximal possible distance
elements

Get or replace element names
[,repgrid-method

Extract parts of the repgrid object.
addConstruct

Add a new construct to an existing grid object.
importGridcor

Import GRIDCOR data files.
getElementNames

Retrieve element names of repgrid object.
getConstructNames2

Retrieve construct names in needed format.
center

Centering of rows (constructs) and/or columns (elements).
cbind.repgrid

Concatenate the elements of two grids
calcAngles

Calculate angles for points in first two columns.
constructD

Calculate Somers' d for the constructs.
constructCor

Calculate correlations between constructs.
calcBiplotCoords

Calculate coordinates for biplot.
indexConflict1

Conflict measure for grids (Slade & Sheehan, 1979) based on correlations.
indexConflict2

Conflict measure for grids (Bassler et al., 1992) based on correlations.
clusterBoot

Multiscale bootstrap cluster analysis.
importGridcorInternal

Internal parser for GRIDCOR data files.
indexPolarization

Polarization (percentage of extreme ratings)
indexIntensity

Intensity index
data-feixas2004

Grid data from Feixas and Saul (2004).
perturbate

Perturbate grid ratings
map

map a value onto others
mapCoordinatesToColor

Determine color values according to a given range of values.
plot.indexDilemma

Plot method for indexDilemma (network graph)
print.indexBieri

Print method for class indexBieri
print.hdistance

Print method for class hdistance (Hartmann distance objects).
print.org.matches

Print method for class org.matches.
distance

Distance measures (between constructs or elements).
distanceHartmann

'Hartmann distance' (standardized Slater distances).
importGridsuite

Import Gridsuite data files.
data-leach2001

Pre- and post therapy dataset from Leach et al. (2001).
doRectanglesOverlap

Detect if two rectangles overlap.
importGridsuiteInternal

Internal parser for Gridsuite data files
print.rmsCor

Print method for class rmsCor (RMS correlation for constructs or elements)
data-boeker

Grid data from Boeker (1996).
data-mackay1992

Grid data from Mackay (1992).
data-fbb2003

Grid data from Fransella, Bell and Bannister (2003).
doubleEntry

Join the constructs of a grid with the same reversed constructs.
importGridstatInternal

Parser for Gridstat data files.
data-raeithel

Grid data from Raeithel (1998).
importGridstat

Import Gridstat data files.
indexUncertainty

Uncertainty index
indexVariability

Calculate 'variability' of a grid as defined by Slater (1977).
rglDrawStandardAxes

Draw standard axes in the origin in an rgl plot.
rglDrawStandardEllipses

Draw standard ellipses in the origin in an rgl plot.
getNoOfConstructs

Get number of constructs
getElementNames2

Retrieve element names in needed format.
indexBias

Calculate 'bias' of grid as defined by Slater (1977).
colorize_matrix_rows

Colorize matrix cell rows using crayon colors
formatMatrix

Format a matrix and add index column.
distanceNormalized

Calculate power-transformed Hartmann distances.
mapCoordinatesToValue

Map arbitrary numeric vector to a given range of values.
matches

Number of matches in ratings
indexConflict3

Conflict or inconsistency measure for grids (Bell, 2004) based on distances.
home

Rotate the interactive 3D device to default views.
indexDDI

Dispersion of dependency index (DDI)
is.repgrid

Test if object has class repgrid
gridlist

Add repgrids into a gridlist
getConstructNames

Get construct names
distanceSlater

Slater distances (standardized Euclidean distances).
lapply_pb

lapply with a progress bar
setConstructAttr

Set the attributes of a construct
setElementAttr

Set the attributes of an element
getScale

Get minimum and maximum scale value used in grid.
indexBieri

Bieri's index of cognitive complexity
midpoint

Midpoint of the grid rating scale
makeRepgrid

Make a new repgrid object.
makeEmptyRepgrid

Constructor for repgrid class
bindConstructs

Concatenate the constructs of two or more grids.
multigridFileToSinglegridFiles

Converts a Gridstat multigrid file into temporary single grid files and returns their path
normalize

Normalize rows or columns by its standard deviation.
print.elementCor

Print method for class elementCor.
+,repgrid,repgrid-method

Concatenate repgrid objects.
[.openrepgridSettings

subset method for openrepgridSettings class
modifyConstruct

modify a construct
print.constructPca

Print method for class constructPca.
print.distance

Print method for class distance.
ratings

Extract ratings (wide or long format)
print.ssq

Print method for class ssq.
print.statsConstructs

Print method for class statsConstructs
print.gridlist

Print method for gridlist objects
recycle

recycle vector to given length
biplot2d

Draw a two-dimensional biplot.
grids_leave_n_out

Resample constructs
strReverse

reverse a string
importExcel

Import grid data from an Excel file.
getScaleMidpoint

Get midpoint of the grid rating scale
[<-,repgrid-method

Method for "<-" assignment of the repgrid ratings.
ring

bring vector values into ring form
show,repgrid-method

Show method for repgrid
indexDilemma

Implicative Dilemmas
importExcelInternal

workhorse function (parser) for importExcel.
swapConstructs

Swap the position of two constructs in a grid.
sapply_pb

sapply with a progress bar
showMeta

showMeta
swapPoles

Reverse constructs / swaps construct poles
swapElements

Swap the position of two elements in a grid.
indexDilemmatic

Dilemmatic constructs
prepareBiplotData

Prepare dataframe passed to drawing functions for biplots.
print.indexConflict3

print method for class indexConflict3
clearRatings

clear ratings
print.alignByLoadings

Print method for class alignByLoadings.
constructRmsCor

Root mean square (RMS) of inter-construct correlations.
cluster

Cluster analysis (of constructs or elements).
randomGrid

Generate a random grid (quasis) of prompted size.
modifyElement

modifyElement
quasiDistributionDistanceSlater

Generate random grids and calculate 'Slater distances' for the elements.
left

Move construct or element in grid to the left, right, up or down.
setMeta

setMeta
print.indexDilemma

Print method for class indexDilemma
recycle2

variation of recycle that recycles one vector x or y to the length of the longer one
randomGrids

Generate a list of random grids (quasis) of prompted size.
print.indexConflict2

Print method for class indexConflict2
orderBy

order one vector by another
orderByString

find the order of a string vector so it will match the order of another
print.indexConflict1

Print function for class indexConflict1
randomSentence

generate a random sentence with n words
importScivesco

Import sci:vesco data files.
constructs

Get or replace construct poles
setScale

Set the scale range of a grid.
data-slater1977a

Drug addict's grid data set from Slater (1977, p. 32).
importScivescoInternal

Internal parser for sci:vesco files (suffix scires).
data-slater1977b

Grid data from Slater (1977).
stop_if_not_is_repgrid

Raise error if not is repgrid object
print.indexIntensity

Print method for class indexIntensity.
print.indexDilemmatic

Print method for class indexDilemmatic
stepChart

Density histogram with steps instead of bars.
importTxt

Import grid data from a text file.
reorder.repgrid

Invert construct and element order
stop_if_not_0_1_ratings_only

Raise error if repgrid object has ratings other than 0/1
stop_if_scale_not_defined

Raise error if min or max of rating scale are undefined
indexSelfConstruction

Self construction profile
indexPvaff

Percentage of Variance Accounted for by the First Factor (PVAFF)
permuteConstructs

Generate a list with all possible construct reflections of a grid.
print_square_matrix

Print a square matrix in well readable format
importTxtInternal

ImportTxtInternal is the parser for importTxt.
print.statsElements

Print method for class statsElements
settings

global settings for OpenRepGrid
rglDrawConstructPoints

draw constructs in rgl
showScale

Print scale range information to the console.
permuteGrid

Permute rows, columns or whole grid matrix.
rglDrawConstructLabels

draw constructs in rgl
settingsSave

Save OpenRepGrid settings
settingsLoad

Load OpenRepGrid settings
print.constructD

Print method for class constructD.
print.constructCor

Print method for class constructCor.
slaterStandardization

Internal workhorse for Slater standardization.
trim_val

trim vector to lower or upper value
shift

Shift construct or element to first position.
reorder2d

Order grid by angles between construct and/or elements in 2D.
randomWords

generate a random words
print.indexPolarization

Print method for class indexPolarization.
print.indexSelfConstruction

Print method for indexSelfConstruction
rep.repgrid

Replicate repgrid objects
randomSentences

generate n random sentences with a given or random number of words
saveAsExcel

Save grid in a Microsoft Excel file (.xlsx)
saveAsTxt

Save grid in a text file (txt).
ssq

Calculate SSQ (accuracy) of biplot representation for elements and constructs.
statsElements

Descriptive statistics for constructs and elements
addElement

Add an element to an existing grid.
alignByIdeal

Align constructs using the ideal element to gain pole preferences.
addIndexColumnToMatrix

add index column for neater colnames