https://github.com/jmgirard/circumplex
R Package for the Analysis and Visualization of Circumplex Data
https://github.com/jmgirard/circumplex
circular circumplex data-analysis ggplot2 interpersonal psychology r r-package rcpparmadillo rstats tidyverse
Last synced: about 2 months ago
JSON representation
R Package for the Analysis and Visualization of Circumplex Data
- Host: GitHub
- URL: https://github.com/jmgirard/circumplex
- Owner: jmgirard
- License: other
- Created: 2017-11-25T17:25:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-07-28T16:38:28.000Z (3 months ago)
- Last Synced: 2025-08-06T18:54:48.277Z (2 months ago)
- Topics: circular, circumplex, data-analysis, ggplot2, interpersonal, psychology, r, r-package, rcpparmadillo, rstats, tidyverse
- Language: R
- Homepage: http://circumplex.jmgirard.com/
- Size: 47.4 MB
- Stars: 11
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
---
output: github_document
always_allow_html: yes
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
library(circumplex)
library(kableExtra)
set.seed(12345)
```# circumplex
[](https://CRAN.R-project.org/package=circumplex)
[](https://github.com/jmgirard/circumplex/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/jmgirard/circumplex)
[](https://github.com/jmgirard/circumplex/actions/workflows/test-coverage.yaml)
[](https://github.com/jmgirard/circumplex/actions/workflows/pkgdown.yaml)The goal of *circumplex* is to provide a powerful, flexible, and user-friendly way to analyze and visualize circumplex data. It was created and is maintained by [Jeffrey Girard](https://affcom.ku.edu/girard/); it was inspired by work from and was developed under advisement from [Johannes Zimmermann](https://www.uni-kassel.de/fb01/institute/institut-fuer-psychologie/fachgebiete/differentielle-psychologie/prof-dr-johannes-zimmermann) and [Aidan Wright](https://sites.lsa.umich.edu/aidangcw-lab/). You can learn more about using this package through the vignette articles available on the [package website](https://circumplex.jmgirard.com/) or through `?circumplex`.
## Installation
``` r
# Install release version from CRAN
install.packages("circumplex")# Install development version from GitHub
devtools::install_github("jmgirard/circumplex")
```## Usage
### Example 1
```{r analysis1}
data("jz2017")
results <- ssm_analyze(
data = jz2017,
scales = c("PA", "BC", "DE", "FG", "HI", "JK", "LM", "NO"),
angles = c(90, 135, 180, 225, 270, 315, 360, 45),
measures = c("NARPD", "ASPD"),
measures_labels = c("Narcissistic PD", "Antisocial PD")
)
summary(results)
`````` r
ssm_table(results, drop_xy = TRUE)
``````{r table1, echo = FALSE, results = "asis"}
ssm_table(results, drop_xy = TRUE, render = FALSE) %>%
kableExtra::kbl(caption = circumplex:::dcaption(results)) %>%
kableExtra::kable_styling(full_width = TRUE, font_size = 12)
``````{r plot}
ssm_plot_circle(results)
``````{r plot2}
ssm_plot_curve(results)
```### Example 2
```{r analysis2}
results2 <- ssm_analyze(
data = jz2017,
scales = PANO(),
angles = octants(),
grouping = "Gender",
contrast = TRUE
)
summary(results2)
`````` r
ssm_table(results2, drop_xy = TRUE)
``````{r table2, echo = FALSE, results = "asis"}
ssm_table(results2, drop_xy = TRUE, render = FALSE) %>%
kableExtra::kbl(caption = circumplex:::dcaption(results)) %>%
kableExtra::kable_styling(full_width = TRUE, font_size = 12)
``````{r plot3}
ssm_plot_contrast(results2, drop_xy = TRUE)
```## Code of Conduct
Please note that the 'circumplex' project is released with a
[Contributor Code of Conduct](https://circumplex.jmgirard.com/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.## References
Girard, J. M., Zimmermann, J., & Wright, A. G. C. (2018). New tools for circumplex data analysis and visualization in R. _Meeting of the Society for Interpersonal Theory and Research._ Montreal, Canada.
Zimmermann, J., & Wright, A. G. C. (2017). Beyond description in interpersonal construct validation: Methodological advances in the circumplex Structural Summary Approach. _Assessment, 24_(1), 3–23.
Wright, A. G. C., Pincus, A. L., Conroy, D. E., & Hilsenroth, M. J. (2009). Integrating methods to optimize circumplex description and comparison of groups. _Journal of Personality Assessment, 91_(4), 311–322.