Learn R Programming

⚠️There's a newer version (0.1.17) of this package.Take me there.

OpenRepGrid (version 0.1.14)

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.

Copy Link

Version

Install

install.packages('OpenRepGrid')

Monthly Downloads

253

Version

0.1.14

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Heckmann

Last Published

May 16th, 2023

Functions in OpenRepGrid (0.1.14)

bertinBase

Workhorse for the biplot printing.
biplot2d

Draw a two-dimensional biplot.
biplot3dBase2

biplot3dBase2 is the workhorse to draw a grid in rgl (3D device).
OpenRepGrid

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

Concatenate the constructs of two or more grids.
bind

Concatenate the constructs of two grids.
biplotDraw

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

Bertin display with corresponding cluster analysis.
biplotPseudo3d

See biplotPseudo3d for its use. Draws a biplot of the grid in 2D with depth impression (pseudo 3D).
biplotSlater3d

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

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

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

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

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

Calculate angles for points in first two columns.
bertin

Make Bertin display of grid data.
alignByLoadings

Align constructs by loadings on first principal component.
apply_pb

apply with a progress bar
angleOrderIndexes2d

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

Colorize matrix cell rows using crayon colors
constructD

Calculate Somers' d for the constructs.
center

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

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

clear ratings
calcBiplotCoords

Calculate coordinates for biplot.
constructPcaLoadings

Extract loadings from PCA of constructs.
calcCoordsBorders

Coordinates of a surrounding rectangle in direction of a given vector.
data-bell2010

Grid data from Bell (2010).
cascade

make ascending and descending vector
convertScivescoImportObjectToRepGridObject

Convert the returned object from the sci:vesco import function into a repgrid object.
biplot3d

Draw grid in rgl (3D device).
biplotSimple

A graphically unsophisticated version of a biplot.
data-bellmcgorry1992

Grid data from Bell and McGorry (1992).
constructs

Get or replace construct poles
constructRmsCor

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

Distance measures (between constructs or elements).
dist_minmax

Calculate minimal and maximal possible distance
convertImportObjectToRepGridObject

convertImportObjectToRepGridObject.
constructCor

Calculate correlations between constructs.
[,repgrid-method

Extract parts of the repgrid object.
formatMatrix

Format a matrix and add index column.
data-leach2001

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

Grid data from Mackay (1992). Data set 'Grid C'-
biplotSlater2d

Draws Slater's INGRID biplot in 2D.
data-fbb2003

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

Calculate the correlations between elements.
data-raeithel

Grid data from Raeithel (1998).
data-slater1977a

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

Grid data from Boeker (1996).
doubleEntry

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

Cluster analysis (of constructs or elements).
getNoOfConstructs

Get number of constructs
dim.gridlist

Number of constructs and elements all repgrids in gridlist
home

Rotate the interactive 3D device to default views.
data-feixas2004

Grid data from Feixas and Saul (2004).
dim.repgrid

Return size of a grid.
importGridstat

Import Gridstat data files.
elementRmsCor

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

Get construct names
getConstructNames2

Retrieve construct names in needed format.
importGridcorInternal

Internal parser for GRIDCOR data files.
distanceSlater

'Slater distances' (standardized Euclidean distances).
importExcel

Import grid data from an Excel file.
getElementNames

Retrieve element names of repgrid object.
doRectanglesOverlap

Detect if two rectangles overlap.
getElementNames2

Retrieve element names in needed format.
clusterBoot

Multiscale bootstrap cluster analysis.
indexConflict1

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

Bieri's index of cognitive complexity
getNoOfElements

Get number of elements
elements

Get or replace element names
indexConflict3

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

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

decouple a grid
data-slater1977b

Grid data from Slater (1977).
distanceHartmann

'Hartmann distance' (standardized Slater distances).
distanceNormalized

Standardized inter-element distances' (power transformed Hartmann distances).
getScale

Get minimum and maximum scale value used in grid.
importExcelInternal

workhorse function (parser) for importExcel.
getRatingLayer

get rating layer
indexPvaff

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

Self construction profile
importGridcor

Import GRIDCOR data files.
indexBias

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

modify a construct
importTxtInternal

ImportTxtInternal is the parser for importTxt.
importGridsuite

Import Gridsuite data files.
importScivescoInternal

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

modifyElement
importGridstatInternal

Parser for Gridstat data files.
importTxt

Import grid data from a text file.
mapCoordinatesToColor

Determine color values according to a given range of values.
indexVariability

Calculate 'variability' of a grid as defined by Slater (1977).
+,repgrid,repgrid-method

Concatenate repgrid objects.
orderBy

order one vector by another
print.hdistance

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

Print method for gridlist objects
is.repgrid

Test if object has class repgrid
matches

Number of matches in ratings
midpoint

Midpoint of the grid rating scale
gridlist

Add repgrids into a gridlist
importScivesco

Import sci:vesco data files.
getScaleMidpoint

Get midpoint of the grid rating scale
importGridsuiteInternal

Internal parser for Gridsuite data files
lapply_pb

lapply with a progress bar
mapCoordinatesToValue

Map arbitrary numeric vector to a given range of values.
print.rmsCor

Print method for class rmsCor (RMS correlation for constructs or elements)
indexDilemma

Detect implicative dilemmas (conflicts).
makeRepgrid

Make a new repgrid object.
indexDilemmatic

Dilemmatic constructs
makeEmptyRepgrid

Constructor for repgrid class
ring

bring vector values into ring form
rglDrawStandardEllipses

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

map a value onto others
print.ssq

Print method for class ssq.
orderByString

find the order of a string vector so it will match the order of another
indexPolarization

Polarization (percentage of extreme ratings)
indexIntensity

Intensity index
plot.indexDilemma

Plot method for indexDilemma (network graph)
prepareBiplotData

Prepare dataframe passed to drawing functions for biplots.
saveAsTxt

Save grid in a text file (txt).
print.distance

Print method for class distance.
normalize

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

Print method for class elementCor.
print.alignByLoadings

Print method for class alignByLoadings.
print.constructCor

Print method for class constructCor.
setConstructAttr

Set the attributes of a construct
[.openrepgridSettings

subset method for openrepgridSettings class
print.constructD

Print method for class constructD.
[<-,repgrid-method

Method for "<-" assignment of the repgrid ratings.
print.org.matches

Print method for class org.matches.
print.constructPca

Print method for class constructPca.
print.statsConstructs

Print method for class statsConstructs
randomSentence

generate a random sentence with n words
print.indexSelfConstruction

Print method for indexSelfConstruction
permuteConstructs

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

reverse a string
print.statsElements

Print method for class statsElements
randomSentences

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

Extract ratings (wide or long format)
swapPoles

Reverse constructs / swaps construct poles
left

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

generate a random words
rglDrawConstructPoints

draw constructs in rgl
rglDrawStandardAxes

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

Load OpenRepGrid settings
shift

Shift construct or element to first position.
show,repgrid-method

Show method for repgrid
multigridFileToSinglegridFiles

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

Save OpenRepGrid settings
saveAsExcel

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

Permute rows, columns or whole grid matrix.
rglDrawConstructLabels

draw constructs in rgl
sapply_pb

sapply with a progress bar
perturbate

Perturbate grid ratings
print.indexBieri

Print method for class indexBieri
slaterStandardization

Internal workhorse for Slater standardization.
ssq

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

Print a square matrix in well readable format
print.indexConflict2

Print method for class indexConflict2
print.indexConflict1

Print function for class indexConflict1
print.indexPolarization

Print method for class indexPolarization.
print.indexConflict3

print method for class indexConflict3
print.indexIntensity

Print method for class indexIntensity.
reorder.repgrid

Invert construct and element order
print.indexDilemmatic

Print method for class indexDilemmatic
recycle

recycle vector to given length
print.indexDilemma

Print method for class indexDilemma
randomGrids

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

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

Descriptive statistics for constructs and elements of a grid.
swapConstructs

Swap the position of two constructs in a grid.
swapElements

Swap the position of two elements in a grid.
recycle2

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

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

Density histogram with steps instead of bars
grids_leave_n_out

Resample constructs
setScale

Set the scale range of a grid.
settings

global settings for OpenRepGrid
stop_if_not_is_repgrid

Raise error if not is repgrid object
rep.repgrid

Replicate repgrid objects
reorder2d

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

Set the attributes of an element
stop_if_scale_not_defined

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

setMeta
showScale

Print scale range information to the console.
showMeta

showMeta
trim_val

trim vector to lower or upper value
addConstruct

Add a new construct to an existing grid object.
OpenRepGrid-overview

OpenRepGrid: Annotated overview of package functions.
addElement

Add an element to an existing grid.
addAvgElement

Add a new average element
alignByIdeal

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

add index column for neater colnames
addVarianceExplainedToBiplot2d

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