Environment geometry alters sequential route learning and its integration into cognitive maps.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R Markdown · 831 lines · 27 KB · no license
- ---
- title: "CURCI Figures"
- output: html_document
- date: "2024-06-08"
- ---
- ```{r setup, include=FALSE #Libraries and fonts}
- knitr::opts_chunk$set(echo = FALSE)
- library(readr)
- options(readr.show_col_types = FALSE)
- library(tidyr)
- library(influence.ME)
- library(MuMIn)
- library(car)
- library(reshape2)
- library(gdata)
- library(dplyr)
- library(afex)
- library(ggplot2)
- install.packages("debug")
- library(plotrix)
- library(showtext)
- font_add_google("Quicksand", family = "Quicksand")
- showtext_auto()
- ```
- ```{r #Retrace SME by Shape}
- CURCI <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final_CURCIG_FP_procrustes.csv")
- CURCI$Shape = factor(CURCI$Shape)
- CURCI_red <- (CURCI %>%
- group_by(ID,Shape) %>%
- #group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- gd <- (CURCI %>%
- group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- gdstde <- (CURCI %>%
- group_by(Shape) %>%
- summarise(stde = std.error(Mean_SME, na.rm = TRUE)))
- windows.options(width = 1, height = 1, reset = FALSE)
- SMEbyShape <- ggplot(CURCI_red, aes(x = Shape, y = Mean_SME,fill=Shape,color=Shape)) +
- geom_point() +
- #geom_errorbar(data = gd, aes(x = Shape, ymin=Mean_SME-unlist(gdstde[,2]),ymax=Mean_SME+unlist(gdstde[,2])), width=.5, color = "black") +
- geom_line(aes(group = CURCI_red$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- ylim(0,25) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbyShape)
- ```
- ```{r #Retrace SME by Object}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_FP_i_procrustes.csv")
- Shapes = "Trapezoid" # Blank, Square, or Trapezoid
- #CURCI_indv <- subset(CURCI_indv,Shape==Shapes) #Uncomment to subset shapes
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_indvS <- subset(CURCI_indv,Shape=="Square")
- CURCI_indvT <- subset(CURCI_indv,Shape=="Trapezoid")
- gd2 <- (CURCI_indv %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- #Uncomment for double line graph
- gd2.S <- (CURCI_indvS %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd2.T <- (CURCI_indvT %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- ObjectbyObjectSME <- ggplot(CURCI_redob, aes(x = Object, y = ObjectSME,fill=Object,colour=Object)) +
- geom_point(size = .5) +
- #geom_line(data = gd2, stat = "identity", alpha = 1, show.legend = TRUE) +
- geom_line(data = gd2.S, stat = "identity", alpha = 1, show.legend = TRUE,colour="red") + #uncomment 4 double line graph
- geom_line(data = gd2.T, stat = "identity", alpha = 1, show.legend = TRUE,colour="blue") + #uncomment 4 double line graph
- #geom_bar(data = gd2, stat = "identity", alpha = .1) + #comment for double line graph
- theme_bw() +
- ylim(0,25) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = "Object Order") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(ObjectbyObjectSME)
- ```
- ```{r #Retrace SME by Even Odd}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCIBehDataindvR.csv")
- #Shapes = "Trapezoid" # Blank, Square, or Trapezoid
- #CURCI_indv <- subset(CURCI_indv,Shape==Shapes) #Uncomment to subset shapes
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,EvenOdd) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_indvS <- subset(CURCI_indv,Shape=="Square")
- CURCI_indvT <- subset(CURCI_indv,Shape=="Trapezoid")
- gd2 <- (CURCI_indv %>%
- group_by(EvenOdd) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- SMEbyEvenOdd <- ggplot(CURCI_redob, aes(x = EvenOdd, y = ObjectSME,fill=EvenOdd,color=EvenOdd)) +
- geom_point(size = .5) +
- geom_bar(data = gd2, stat = "identity", alpha = .1) + #comment for double line graph
- theme_bw() +
- ylim(0,25) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = "Object Order") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbyEvenOdd)
- ```
- ```{r #Retrace Narrow vs. Wide}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_FP_i_procrustes.csv")
- CURCI_indv <- subset(CURCI_indv,Shape=="Trapezoid")
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd <- (CURCI_indv %>%
- group_by(NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- NarrowvsWide <- ggplot(CURCI_redob, aes(x = NarWide, y = ObjectSME,fill=NarWide,color=NarWide)) +
- geom_point(size = 2) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- geom_line(aes(group = CURCI_redob$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- ylim(0,25) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(NarrowvsWide)
- ```
- ```{r #Retrace Indv Object Order Comparisons}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_FP_i_procrustes.csv")
- CURCI_indv <- subset(CURCI_indv, Object==6 | Object==4 | Object==2)
- CURCI_indv <- subset(CURCI_indv, NarWide != "Wide")
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_redob$NarWide <- factor(CURCI_redob$NarWide, levels=c("Square", "Wide", "Narrow"))
- CURCI_redob <- subset(CURCI_redob, ObjectSME < 15)
- gd <- (CURCI_indv %>%
- group_by(NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- indvnarwide <- ggplot(CURCI_redob, aes(x = NarWide, y = ObjectSME,fill=NarWide,color=NarWide)) +
- geom_point(size = 2) +
- #geom_errorbar(aes(min=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- geom_line(aes(group = CURCI_redob$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- ylim(0,25) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Narrow vs. Square (First-Person)",
- y = expression("SME "[FP]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(indvnarwide)
- ```
- ```{r #Retrace Heatmaps}
- Environments <- list("A1A","A1B","A2A","A2B","B1A","B1B","B2A","B2B")
- for (Environment in Environments)
- {
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/EXEsPT/CompletePTDataIndv.csv")
- CURCI_Retracekey <- read_csv("C:/Users/clm/Documents/EXEsPT/RetraceKey.csv")
- CURCI_Retrace <- subset(CURCI_PTindv,env==Environment)
- CURCI_Retracekey.env <- subset(CURCI_Retracekey,env==Environment)
- Loop <- c(1,2,3,4)
- Retraces <- c("Retrace One", "Retrace Two", "Retrace Three", "Average Retrace")
- RetraceX <- colnames(CURCI_Retrace)[16:19]
- RetraceY <- colnames(CURCI_Retrace)[20:23]
- for (Retrace in Loop)
- {
- png(file=paste("C:/Users/clm/Documents/EXEsPT/RetraceHeatMaps/",Environment,as.character(Retraces[Retrace]),".png",sep=""),
- width=600, height=600)
- RetraceXNow <- RetraceX[Retrace]
- RetraceYNow <- RetraceY[Retrace]
- Retraceindv.env <- ggplot(CURCI_Retrace, aes(x = .data[[RetraceXNow]], y = .data[[RetraceYNow]])) +
- geom_point(size = 1) +
- geom_point(data=CURCI_Retracekey.env, aes(x = x_cor, y = y_cor),color="red",size=2) +
- xlim(-40,40) +
- ylim(-40,40) +
- theme_bw() +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = paste(Environment,as.character(Retraces[Retrace])),
- y = "Y Coordinate",
- x = "X Coordinate") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(Retraceindv.env)
- dev.off()
- }
- }
- ```
- ```{r #PT Heatmaps}
- Environments <- list("A1A","A1B","A2A","A2B","B1A","B1B","B2A","B2B")
- for (Environment in Environments)
- {
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/EXEsPT/CompletePTDataIndv.csv")
- CURCI_PTkey <- read_csv("C:/Users/clm/Documents/EXEsPT/PTKey.csv")
- CURCI_PTindv.env <- subset(CURCI_PTindv,env==Environment)
- CURCI_PTkey.env <- subset(CURCI_PTkey,env==Environment)
- png(file=paste("C:/Users/clm/Documents/EXEsPT/PTHeatMaps/",Environment,".png",sep=""),
- width=600, height=600)
- PTindv.env <- ggplot(CURCI_PTindv.env, aes(x = x_cor, y = y_cor)) +
- geom_point(size = 1) +
- geom_point(data=CURCI_PTkey.env,color="red",size=2) +
- xlim(-800,100) +
- ylim(-300,600) +
- theme_bw() +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = Environment,
- y = "Y Coordinate",
- x = "X Coordinate") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTindv.env)
- dev.off()
- }
- ```
- ```{r #PT SME by Shape}
- CURCI_PT <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final_CURCIG_O_procrustes.csv")
- titled = "Overhead"
- #CURCI_PT <- subset(CURCI_PT,SOD>=4) #change to filter for SOD
- CURCI_redPT <- (CURCI_PT %>%
- group_by(ID,Shape) %>%
- #group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- gdPT <- (CURCI_PT %>%
- group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- PTSMEbyShape <- ggplot(CURCI_redPT, aes(x = Shape, y = Mean_SME,fill=Shape,color=Shape)) +
- geom_point(size = 2) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- geom_line(aes(group = CURCI_redPT$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gdPT, stat = "identity", alpha = .1) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTSMEbyShape)
- ```
- ```{r #PT SME by Object}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_O_i_procrustes.csv")
- Shapes = "Trapezoid"
- #CURCI_PTindv <- subset(CURCI_PTindv,Shape==Shapes) #to subset the shapes
- CURCI_PTredob <- (CURCI_PTindv %>%
- group_by(ID,Object) %>%
- #group_by(Shape) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_indvPT.S <- subset(CURCI_PTindv,Shape=="Square")
- CURCI_indvPT.T <- subset(CURCI_PTindv,Shape=="Trapezoid")
- gdPT2 <- (CURCI_PTindv %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gdPT2.S <- (CURCI_indvPT.S %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gdPT2.T <- (CURCI_indvPT.T %>%
- group_by(Object) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- PTObjectbyObjectSME <- ggplot(CURCI_PTredob, aes(x = Object, y = ObjectSME,fill=Object,color=Object)) +
- geom_point(size = .5) +
- #geom_line(data = gdPT2, stat = "identity", alpha = 1, show.legend = TRUE) +
- geom_line(data = gdPT2.S, stat = "identity", alpha = 1, show.legend = TRUE,color="red") +
- geom_line(data = gdPT2.T, stat = "identity", alpha = 1, show.legend = TRUE,color="blue") +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = "Object Order") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTObjectbyObjectSME)
- ```
- ```{r #PT SME by EvenOdd}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/EXEsPT/CompletePTDataIndv.csv")
- #Shapes = "Square"
- #CURCI_PTindv <- subset(CURCI_PTindv,shape==Shapes) #to subset the shapes
- CURCI_PTredob <- (CURCI_PTindv %>%
- group_by(id,evenodd) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- CURCI_indvPT.S <- subset(CURCI_PTindv,shape=="Square")
- CURCI_indvPT.T <- subset(CURCI_PTindv,shape=="Trapezoid")
- gdPT2 <- (CURCI_PTindv %>%
- group_by(evenodd) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- PTSMEbyEvenOdd <- ggplot(CURCI_PTredob, aes(x = evenodd, y = euclidian,fill=evenodd,color=evenodd)) +
- geom_point(size = .5) +
- geom_bar(data = gdPT2, stat = "identity", alpha = .1) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = "Object Order") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTSMEbyEvenOdd)
- ```
- ```{r #PT Narrow vs. Wide}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_O_i_procrustes.csv")
- CURCI_PTindv <- subset(CURCI_PTindv,Shape=="Trapezoid")
- #CURCI_PTindv <- subset(CURCI_PTindv,SOD>=4)
- CURCI_redob <- (CURCI_PTindv %>%
- group_by(ID,NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd <- (CURCI_PTindv %>%
- group_by(NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- NarrowvsWide <- ggplot(CURCI_redob, aes(x = NarWide, y = ObjectSME,fill=NarWide,color=NarWide)) +
- geom_point(size = 2) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- geom_line(aes(group = CURCI_redob$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(NarrowvsWide)
- ```
- ```{r #PT Indv Object Order Comparisons}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final for R/Final_CURCIG_O_i_procrustes.csv")
- CURCI_PTindv <- subset(CURCI_PTindv, Object==6 | Object ==4 | Object==2)
- CURCI_PTindv <- subset(CURCI_PTindv, NarWide != "Wide")
- CURCI_redob <- (CURCI_PTindv %>%
- group_by(ID,NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_redob$NarWide <- factor(CURCI_redob$NarWide, levels=c("Square", "Wide", "Narrow"))
- gd <- (CURCI_PTindv %>%
- group_by(NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- indvnarwide <- ggplot(CURCI_redob, aes(x = NarWide, y = ObjectSME,fill=NarWide,color=NarWide)) +
- geom_point(size = 2) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- geom_line(aes(group = CURCI_redob$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Narrow vs. Square (Overhead)",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(indvnarwide)
- ```
- ```{r #SME by Environment}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCIBehDataindvR.csv")
- CURCI_indv <- subset(CURCI_indv, Path_Version=="A") #change for version
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,Environment) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd2 <- (CURCI_indv %>%
- group_by(Environment) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- SMEbyEnv <- ggplot(CURCI_redob, aes(x = Environment, y = ObjectSME,fill=Environment,color=Environment)) +
- geom_point(size = .5) +
- geom_bar(data = gd2, stat = "identity", alpha = .1) + #comment for double line graph
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Version A", #change for version
- y = "SME",
- x = "Environment") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbyEnv)
- ```
- ```{r #SME by Path}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCIBehDataindvR.csv")
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,Path_Version) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd2 <- (CURCI_indv %>%
- group_by(Path_Version) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- SMEbyPath <- ggplot(CURCI_redob, aes(x = Path_Version, y = ObjectSME,fill=Path_Version,color=Path_Version)) +
- geom_point(size = .5) +
- geom_bar(data = gd2, stat = "identity", alpha = .1) + #comment for double line graph
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- y = "SME",
- x = "Path") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbyPath)
- ```
- ```{r #SME by Reptition}
- CURCI <- read_csv("C:/Users/clm/Documents/CURCIBehData2.csv")
- CURCI_red <- (CURCI %>%
- group_by(ID,Repetition) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- gd <- (CURCI %>%
- group_by(Repetition) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- SMEbyRepetition <- ggplot(CURCI_red, aes(x = Repetition, y = Mean_SME,fill=Repetition,color=Repetition)) +
- geom_point() +
- geom_line(aes(group = CURCI_red$ID), color = "black",alpha = .2 ) +
- geom_bar(data = gd, stat = "identity", alpha = .1) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- y = "SME",
- x = "Repetition") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbyRepetition)
- ```
- ```{r #Retrace SME by SOD}
- CURCI <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final_CURCIG_FP_procrustes.csv")
- CURCI$Shape = factor(CURCI$Shape)
- #Shapes = "Low" # Blank, Square, or Trapezoid
- #CURCI <- subset(CURCI,Shape==Shapes) #Uncomment to subset shapes
- #CURCI <- subset(CURCI,SOD<4)
- CURCI_red <- (CURCI %>%
- group_by(ID,SOD) %>%
- #group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- SMEbySOD <- ggplot(CURCI_red, aes(x = SOD, y = Mean_SME,fill=SOD,color=SOD)) +
- geom_point() +
- geom_smooth(method=lm) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- ylim(0,15) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = "SOD") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(SMEbySOD)
- ```
- ```{r #PT SME by SOD}
- CURCI_PT <- read_csv("C:/Users/clm/Documents/CURCI-G Procrustes/Output - with scaling/Final_CURCIG_O_procrustes.csv")
- #titled = "All Low SOD Trapezoid" # Blank, Square, or Trapezoid
- #CURCI_PT <- subset(CURCI_PT,shape=="Square") #Uncomment to subset shapes
- #CURCI_PT <- subset(CURCI_PT,SOD<4) #Uncomment to subset SOD
- CURCI_redPT <- (CURCI_PT %>%
- group_by(ID,SOD) %>%
- #group_by(Shape) %>%
- summarise(Mean_SME = mean(Mean_SME, na.rm = TRUE)))
- PTSMEbySOD <- ggplot(CURCI_redPT, aes(x = SOD, y = Mean_SME,fill=SOD,color=SOD)) +
- geom_point() +
- geom_smooth(method=lm) +
- #geom_errorbar(aes(ymin=Mean_SME-std.error(), ymax=Mean_SME+sd), width=.2,
- #position=position_dodge(.9)) +
- theme_bw() +
- ylim(0,250) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = "SOD") +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTSMEbySOD)
- ```
- ```{r #Retrace Narrow vs. Wide BOXPLOT}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCIBehDataindvR.csv")
- CURCI_indv <- subset(CURCI_indv,Shape=="Trapezoid")
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gd <- (CURCI_redob %>%
- group_by(NarWide) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gdstde <- (CURCI_redob %>%
- group_by(NarWide) %>%
- summarise(stde = std.error(ObjectSME, na.rm = TRUE)))
- NarrowvsWide <- ggplot(CURCI_redob, aes(x = NarWide, y = ObjectSME,fill=NarWide,color=NarWide)) +
- geom_boxplot(alpha = .35) +
- ylim(0,25) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "First-Person",
- y = expression("SME "[FP]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(NarrowvsWide)
- #rev = subset(CURCI_redob,NarWide=="Narrow")
- #rev = subset(CURCI_redob,NarWide=="Wide")
- ```
- ```{r #PT Narrow vs. Wide BOXPLOT}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/Other/EXEsPT/CompletePTDataIndv.csv")
- CURCI_PTindv <- subset(CURCI_PTindv,Shape=="Trapezoid")
- #CURCI_PTindv <- subset(CURCI_PTindv,SOD>=4)
- CURCI_redob <- (CURCI_PTindv %>%
- group_by(ID,NarWide) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gd <- (CURCI_redob %>%
- group_by(NarWide) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gdstde <- (CURCI_redob %>%
- group_by(NarWide) %>%
- summarise(stde = std.error(euclidian, na.rm = TRUE)))
- NarrowvsWide <- ggplot(CURCI_redob, aes(x = NarWide, y = euclidian,fill=NarWide,color=NarWide)) +
- geom_boxplot(alpha= .35) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Overhead",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(NarrowvsWide)
- ptIQR = subset(CURCI_redob,NarWide=="Narrow")
- IQR(ptIQR$euclidian, na.rm = TRUE)
- ```
- ```{r #Retrace Indv Object Order Comparisons BOXPLOT}
- CURCI_indv <- read_csv("C:/Users/clm/Documents/CURCIBehDataindvR.csv")
- CURCI_indv <- subset(CURCI_indv, Object==6 | Object==4 | Object==2)
- CURCI_indv <- subset(CURCI_indv, NarWide != "Wide")
- CURCI_redob <- (CURCI_indv %>%
- group_by(ID,Shape) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- CURCI_redob <- subset(CURCI_redob, ObjectSME < 15)
- gd <- (CURCI_redob %>%
- group_by(Shape) %>%
- summarise(ObjectSME = mean(ObjectSME, na.rm = TRUE)))
- gdstde <- (CURCI_redob %>%
- group_by(Shape) %>%
- summarise(stde = std.error(ObjectSME, na.rm = TRUE)))
- indvnarwide <- ggplot(CURCI_redob, aes(x = Shape, y = ObjectSME,fill=Shape,color=Shape)) +
- geom_boxplot(alpha = .35) +
- ylim(0,25) +
- theme_bw() +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Wide vs. Square (First-Person)",
- y = expression("SME "[FP]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(indvnarwide)
- ```
- ```{r #PT Indv Object Order Comparisons BOXPLOT}
- CURCI_PTindv <- read_csv("C:/Users/clm/Documents/Other/EXEsPT/CompletePTDataIndv.csv")
- CURCI_PTindv <- subset(CURCI_PTindv, Object==6 | Object ==4 | Object==2)
- CURCI_PTindv <- subset(CURCI_PTindv, NarWide != "Wide")
- CURCI_redob <- (CURCI_PTindv %>%
- group_by(ID,Shape) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gd <- (CURCI_PTindv %>%
- group_by(Shape) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gdstde <- (CURCI_redob %>%
- group_by(Shape) %>%
- summarise(stde = std.error(euclidian, na.rm = TRUE)))
- indvnarwide <- ggplot(CURCI_redob, aes(x = Shape, y = euclidian,fill=Shape,color=Shape)) +
- geom_boxplot(alpha = .35) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Wide vs. Square (Overhead)",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(indvnarwide)
- ```
- ```{r #PT SME by Shape BOXPLOT}
- CURCI_PT <- read_csv("C:/Users/clm/Documents/Other/EXEsPT/CompletePTData.csv")
- titled = "Overhead"
- CURCI_PT <- subset(CURCI_PT,SOD<4.6) #change to filter for SOD
- CURCI_redPT <- (CURCI_PT %>%
- group_by(ID,Shape) %>%
- #group_by(Shape) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gd <- (CURCI_redPT %>%
- group_by(Shape) %>%
- summarise(euclidian = mean(euclidian, na.rm = TRUE)))
- gdstde <- (CURCI_redPT %>%
- group_by(Shape) %>%
- summarise(stde = std.error(euclidian, na.rm = TRUE)))
- PTSMEbyShape <- ggplot(CURCI_redPT, aes(x = Shape, y = euclidian,fill=Shape,color=Shape)) +
- geom_boxplot(alpha = .35) +
- theme_bw() +
- ylim(0,400) +
- theme(legend.position="none") +
- theme(panel.border = element_blank(), panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(), axis.line = element_line(colour = "black")) +
- labs(
- title = "Low SOD (Overhead)",
- y = expression("SME "[O]),
- x = NULL) +
- theme(text=element_text(size=16, family="Quicksand"))
- plot(PTSMEbyShape)
- IQR = subset(CURCI_redPT,Shape=="Square")
- IQR(IQR$euclidian, na.rm = TRUE)
- ```
CURCI Figures General Script.Rmd at commit c44cb8e, no license · at the source
Overview
- Georgia Institute of Technology,Atlanta, GA USA
- Center for Research and Education in Navigation, Atlanta, GA USA
- University of Waterloo,Waterloo, ON Canada
- Georgia State University,Atlanta, GA USA
- Albizu University,San Juan, Puerto Rico USA
Abstract
Researchers hypothesize that geometric irregularities can impede spatial memory by distorting neural metrics of space provided by entorhinal grid cells. However, irregularly-shaped geometries could also contribute orientation information that benefits spatial memory. Moreover, serial order effects could counteract or amplify geometry effects during route navigation. Our study directly tests how effects of environment geometry (trapezoid and square) and series in route navigation interact to influence spatial memory in a virtual navigation task. We uncover effects of environment geometry predicted by grid cell models and serial order effects predicted by path integration models. Critically, our results demonstrate that these effects combine in an additive manner, such that location memory toward the end of a route in regions with the largest geometric irregularities (trapezoid) yield the worst spatial memory. Additionally, self-report measures of navigational ability are associated with increased sensitivity to geometric irregularities, emphasizing the essential role of individual differences in navigation.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above.
MAPLabgroup/CURCI-G
c44cb8ec579cfcc854d26a9c1a33a5bfd01e7c79, 5 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
2 files
- CURCI Figures General Script.Rmd, R, 831 lines
- README.md, Text, 15 lines
Zenodo 20045218
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
2 files
- CURCI Figures General Script.Rmd, R, 831 lines
- README.md, Text, 7 lines
Code availability
This study used code for data organization, data analysis, and figure creation. All code and programming scripts that support the findings of this study are available on GitHub (10.5281/
Reproduced under the paper's license (CC BY), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
All display items presented in the main manuscript and supplementary information can be reproduced from material shared on GitHub (10.5281/
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 2 keywords, 10 MeSH terms, 2 funders, 60 references.
Cite
This paper
Long, J., Herrera, E., Li, Y., Oliveira, F., Ahmed, R., Hussain, S., Rivera, C., Liquori, K., & Brown, T. (2026). Environment geometry alters sequential route learning and its integration into cognitive maps. Nature communications, 17(1), 8400. https://
BibTeX
@article{long2026environ
author = {Long, Jaida and Herrera, Estibaliz and Li, Yiran and Oliveira, Felipe and Ahmed, Rida and Hussain, Sana and Rivera, Camille and Liquori, Kristin and Brown, Thackery},
title = {{Environment geometry alters sequential route learning and its integration into cognitive maps}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8400},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42414280},
pmcid = {PMC13473551}
}
RIS
TY - JOUR
AU - Long, Jaida
AU - Herrera, Estibaliz
AU - Li, Yiran
AU - Oliveira, Felipe
AU - Ahmed, Rida
AU - Hussain, Sana
AU - Rivera, Camille
AU - Liquori, Kristin
AU - Brown, Thackery
TI - Environment geometry alters sequential route learning and its integration into cognitive maps
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8400
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Environment geometry alters sequential route learning and its integration into cognitive maps",
"container-title": "Nature communications",
"author": [
{
"family": "Long",
"given": "Jaida"
},
{
"family": "Herrera",
"given": "Estibaliz"
},
{
"family": "Li",
"given": "Yiran"
},
{
"family": "Oliveira",
"given": "Felipe"
},
{
"family": "Ahmed",
"given": "Rida"
},
{
"family": "Hussain",
"given": "Sana"
},
{
"family": "Rivera",
"given": "Camille"
},
{
"family": "Liquori",
"given": "Kristin"
},
{
"family": "Brown",
"given": "Thackery"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8400",
"DOI": "10.1038/
"PMID": "42414280",
"PMCID": "PMC13473551",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
7
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-026-72620-4 [code]
- Grid maps are disrupted after large-scale arena expansion and recover with experience.Journal: Nature communicationsIn common: 7 references
- [2] doi:10.1126/sciadv.aec9291 [code]
- Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.Journal: Science advancesIn common: afex, car, reshape2, 2 other tools, cognitive
- [3] doi:10.1371/journal.pone.0353990 [code]
- Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.Journal: PloS oneIn common: afex, car, reshape2, 2 other tools, cognitive
- [4] doi:10.1371/journal.pbio.3003767 [code]
- Ultrasound neuromodulation reveals distinct roles of the dorsal anterior cingulate cortex and anterior insula in learning.Journal: PLoS biologyIn common: afex, car, reshape2, 2 other tools, cognitive
- [5] doi:10.1111/psyp.70265 [code]
- Neurocognitive Dynamics of Translating Information From a Spatial Map Into Action.Journal: PsychophysiologyIn common: car, ggplot2, tidyverse, cognitive, 2 references
- [6] doi:10.1016/j.nicl.2026.104012 [code]
- Structural-functional multilayer brain network properties and outcome of combined repetitive transcranial magnetic stimulation and psychotherapy for obsessive-compulsive disorder.Journal: NeuroImage. ClinicalIn common: afex, car, reshape2, 2 other tools
- [7] doi:10.1523/eneuro.0423-25.2026 [code]
- Cortically Mediated Muscle Responses to Balance Perturbations Increase with Perturbation Magnitude in Older Adults with and without Parkinson's Disease.Journal: eNeuroIn common: afex, car, reshape2, 2 other tools
- [8] doi:10.1162/imag.a.105 [code]
- Right posterior theta reflects human parahippocampal phase resetting by salient cues during goal-directed navigationJournal: n/aIn common: car, reshape2, ggplot2, 1 other tool, cognitive, 1 reference
- [9] doi:10.1192/bjp.2026.10664 [code]
- Early effects of a novel 5-HT&
lt;sub& gt;4& lt;/ sub& gt;R agonist (PF-04995274) and the SSRI citalopram on emotional cognition in unmedicated depression: RESTAND study. Journal: The British journal of psychiatry : the journal of mental scienceIn common: afex, car, ggplot2, 1 other tool, cognitive - [10] doi:10.1038/s41467-026-70289-3 [code]
- Directional dynamics in the entorhinal cortex of male mice driven by behavioral constraints.Journal: Nature communicationsIn common: 4 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 2 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:4fa99fff9584ea29…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
