Learn R Programming

OpenRepGrid (version 0.1.18)

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

273

Version

0.1.18

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Heckmann

Last Published

July 8th, 2025

Functions in OpenRepGrid (0.1.18)

bind

Concatenate the constructs of two grids.
biplot3d

Draw grid in rgl (3D device).
bindConstructs

Concatenate the constructs of two or more grids.
addIndexColumnToMatrix

add index column for neater colnames
alignByPreferredPole

Align constructs by preferred pole
biplot2d

Draw a two-dimensional biplot.
OpenRepGrid-overview

OpenRepGrid: Annotated overview of package functions.
addElement

Add an element to an existing grid.
biplotPseudo3d

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

Make Bertin display of grid data.
biplotSimple

A graphically unsophisticated version of a biplot.
OpenRepGrid

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

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

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

apply with a progress bar
calcBiplotCoords

Calculate coordinates for biplot.
biplotSlater3d

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

Bertin display with corresponding cluster analysis.
biplotSlater2d

Draws Slater's INGRID biplot in 2D.
constructCor

Calculate correlations between constructs.
biplotEsa2d

Plot an eigenstructure analysis (ESA) biplot in 2D.
constructPca

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

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

make ascending and descending vector
cbind.repgrid

Concatenate the elements of two grids
constructD

Calculate Somers' d for the constructs.
constructPcaLoadings

Extract loadings from PCA of constructs.
constructRmsCor

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

Get or replace construct poles
data-bell2010

Grid data from Bell (2010).
df_construct_columns

Sample dataframe with grid data (constructs are columns)
decouple

decouple a grid
biplotEsa3d

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

Distance measures (between constructs or elements).
dist_minmax

Calculate minimal and maximal possible distance
biplotEsaPseudo3d

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

Retrieve construct names in needed format.
getConstructNames

Get construct names
data-fbb2003

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

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

clear ratings
data-leach2001

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

Export a grid to dataframe with long format
data-feixas2004

Grid data from Feixas and Saul (2004).
data-boeker

Grid data from Boeker (1996).
getScaleMidpoint

Get midpoint of the grid rating scale
distanceSlater

Slater distances (standardized Euclidean distances).
dim.gridlist

Number of constructs and elements all repgrids in gridlist
df_element_columns

Sample dataframe with grid data (elements are columns)
indexConflict3

Conflict or inconsistency measure for grids (Bell, 2004) based on distances.
data-bellmcgorry1992

Grid data from Bell and McGorry (1992).
dim.repgrid

Return size of a grid.
df_long

Sample dataframe with grid data (long)
elementRmsCor

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

Get or replace element names
indexDDI

Dispersion of dependency index (DDI)
biplotSlaterPseudo3d

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

Get number of elements
matches

Number of matches in ratings
mapCoordinatesToValue

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

Get number of constructs
importGridcorInternal

Internal parser for GRIDCOR data files.
convertImportObjectToRepGridObject

convertImportObjectToRepGridObject.
perturbate

Perturbate grid ratings
cluster

Cluster analysis (of constructs or elements).
calcAngles

Calculate angles for points in first two columns.
doubleEntry

Join the constructs of a grid with the same reversed constructs.
plot.indexDilemma

Plot method for indexDilemma (network graph)
doRectanglesOverlap

Detect if two rectangles overlap.
elementCor

Calculate the correlations between elements.
importGridstat

Import Gridstat data files.
importGridsuiteInternal

Internal parser for Gridsuite data files
[,repgrid-method

Extract parts of the repgrid object.
formatMatrix

Format a matrix and add index column.
data-slater1977b

Grid data from Slater (1977).
convertScivescoImportObjectToRepGridObject

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

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

Calculate power-transformed Hartmann distances.
distanceHartmann

'Hartmann distance' (standardized Slater distances).
clusterBoot

Multiscale bootstrap cluster analysis.
importGridcor

Import GRIDCOR data files.
importExcel

Import grid data from an Excel file.
getScale

Get minimum and maximum scale value used in grid.
home

Rotate the interactive 3D device to default views.
importDataframe

Convert a dataframe into a repgrid object.
gridlist

Add repgrids into a gridlist
grid_to_df_wide

Export a grid to dataframe with wide format
getRatingLayer

get rating layer
data-mackay1992

Grid data from Mackay (1992).
data-raeithel

Grid data from Raeithel (1998).
importGridsuite

Import Gridsuite data files.
indexConflict1

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

Parser for Gridstat data files.
indexConflict2

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

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

Retrieve element names of repgrid object.
getElementNames2

Retrieve element names in needed format.
indexVariability

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

Uncertainty index
print.indexPolarization

Print method for class indexPolarization.
importScivesco

Import sci:vesco data files.
print.indexSelfConstruction

Print method for indexSelfConstruction
reorder2d

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

Self construction profile
indexPvaff

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

map a value onto others
rglDrawStandardAxes

Draw standard axes in the origin in an rgl plot.
rep.repgrid

Replicate repgrid objects
rglDrawStandardEllipses

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

Normalize rows or columns by its standard deviation.
indexBieri

Bieri's index of cognitive complexity
multigridFileToSinglegridFiles

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

Determine color values according to a given range of values.
print.indexDilemmatic

Print method for class indexDilemmatic
swapElements

Swap the position of two elements in a grid.
trim_val

trim vector to lower or upper value
is.repgrid

Test if object has class repgrid
lapply_pb

lapply with a progress bar
importTxt

Import grid data from a text file.
indexIntensity

Intensity index
permuteConstructs

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

Polarization (percentage of extreme ratings)
print.statsConstructs

Print method for class statsConstructs
makeEmptyRepgrid

Constructor for repgrid class
print.ssq

Print method for class ssq.
print.indexIntensity

Print method for class indexIntensity.
makeRepgrid

Make a new repgrid object.
reorder.repgrid

Invert construct and element order
orderBy

order one vector by another
recycle2

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

Resample constructs
importScivescoInternal

Internal parser for sci:vesco files (suffix scires).
permuteGrid

Permute rows, columns or whole grid matrix.
swapPoles

Reverse constructs / swaps construct poles
indexDilemma

Implicative Dilemmas
orderByString

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

Print method for class distance.
print.constructPca

Print method for class constructPca.
settingsSave

Save OpenRepGrid settings
settingsLoad

Load OpenRepGrid settings
stop_if_not_0_1_ratings_only

Raise error if repgrid object has ratings other than 0/1
print.constructCor

Print method for class constructCor.
stepChart

Density histogram with steps instead of bars.
print.hdistance

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

Print method for class rmsCor (RMS correlation for constructs or elements)
print.indexBieri

Print method for class indexBieri
print.statsElements

Print method for class statsElements
print.org.matches

Print method for class org.matches.
print.gridlist

Print method for gridlist objects
randomWords

generate a random words
print.elementCor

Print method for class elementCor.
indexDilemmatic

Dilemmatic constructs
print_square_matrix

Print a square matrix in well readable format
sapply_pb

sapply with a progress bar
print.constructD

Print method for class constructD.
randomSentences

generate n random sentences with a given or random number of words
[<-,repgrid-method

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

Add grids as sheets to an openxlsx Workbook
ring

bring vector values into ring form
rglDrawConstructLabels

draw constructs in rgl
rglDrawConstructPoints

draw constructs in rgl
[.openrepgridSettings

subset method for openrepgridSettings class
show,repgrid-method

Show method for repgrid
shift

Shift construct or element to first position.
stop_if_scale_not_defined

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

Set the attributes of a construct
midpoint

Midpoint of the grid rating scale
slaterStandardization

Internal workhorse for Slater standardization.
modifyElement

modifyElement
showScale

Print scale range information to the console.
modifyConstruct

modify a construct
+,repgrid,repgrid-method

Concatenate repgrid objects.
preferredPoles

Get / set preferred construct poles
left

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

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

Print function for class indexConflict1
print.indexConflict2

Print method for class indexConflict2
print.alignByLoadings

Print method for class alignByLoadings.
quasiDistributionDistanceSlater

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

Swap the position of two constructs in a grid.
preferredPolesByIdeal

Set preferred pole by ideal element
ratings

Extract ratings (wide or long format)
print.indexConflict3

print method for class indexConflict3
print.indexDilemma

Print method for class indexDilemma
strReverse

reverse a string
randomGrid

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

recycle vector to given length
saveAsExcel

Save grids as Microsoft Excel file (.xlsx)
saveAsTxt

Save grid in a text file (txt).
setScale

Set the scale range of a grid.
randomGrids

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

global settings for OpenRepGrid
setMeta

setMeta
randomSentence

generate a random sentence with n words
stop_if_not_is_repgrid

Raise error if not is repgrid object
stop_if_not_in_element_range

Raise error if element index is outside of range or element name is unknown
setElementAttr

Set the attributes of an element
ssq

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

Descriptive statistics for constructs and elements
alignByLoadings

Align constructs by loadings on first principal component.
alignByIdeal

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

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

Add a new average element
addConstruct

Add a new construct to an existing grid object.