Skip to content

Commit

Permalink
Merge pull request #1375 from fbenke-pik/develop
Browse files Browse the repository at this point in the history
fix bug in plotIterations.R
  • Loading branch information
fbenke-pik authored Aug 10, 2023
2 parents 38e568e + 7079d00 commit cc10299
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/output/single/plotIterations.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ if (!identical(trimws(answer), "")) {
}
symbolNames <- trimws(strsplit(symbolNames, ",")[[1]])


# choose plot mapping
for (s in symbolNames) {
for (s in symbolNames) {
cat("\n\nHow do you want to map the dimensions of ", s, "in the plot?",
"Unused aesthetics need to be set to NULL. Combine dimensions with +.\n(default: ", plotMappingDefault, ")\n")
answer <- getLineCoerce()
if (!identical(trimws(answer), "")) {
pm <- answer
# user input contains combined dimensions
if (grepl("\\+", pm)) {
cd <- strsplit(pm, ",")[[1]]
cd <- cd[grepl("\\+", cd)]
Expand All @@ -72,6 +72,10 @@ symbolNames <- trimws(strsplit(symbolNames, ",")[[1]])
)
combineDims[[s]] <- cd
plotMapping[[s]] <- pm
# user input does not contain combined dimensions
} else{
plotMapping[[s]] <- pm
combineDims[[s]] <- ""
}
} else {
plotMapping[[s]] <- plotMappingDefault
Expand Down

0 comments on commit cc10299

Please sign in to comment.