Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
R-packages
ufs
Commits
9b4edb49
Commit
9b4edb49
authored
Dec 04, 2020
by
Gjalt-Jorn Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted CIM
parent
11cd4af4
Pipeline
#225307130
failed with stage
in 5 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
R/CIM.R
R/CIM.R
+20
-6
No files found.
R/CIM.R
View file @
9b4edb49
...
...
@@ -146,7 +146,6 @@ CIM <- function(data,
dataframeName
<-
deparse
(
substitute
(
data
));
abbrScaleNames
<-
abbreviate
(
names
(
scales
));
abbrScales
<-
lapply
(
seq_along
(
scales
),
function
(
i
)
{
...
...
@@ -498,15 +497,30 @@ CIM <- function(data,
sort
(
c
(
rowVar
,
colVar
));
titleString
<-
paste0
(
titleString
[
1
],
' & '
,
titleString
[
2
],
"\n"
,
fitText
);
grobsList
[[
rowIndex
]][[
colIndex
]]
<-
res
$
intermediate
$
diamondplots
[[
rowVar
]][[
colVar
]]
<-
if
(
n.iter
>
1
)
{
grobsList
[[
rowIndex
]][[
colIndex
]]
<-
res
$
intermediate
$
diamondplots
[[
rowVar
]][[
colVar
]]
<-
factorLoadingDiamondCIplot
(
res
$
intermediate
$
efas
[[
rowVar
]][[
colVar
]],
colors
=
colors
,
sortAlphabetically
=
TRUE
)
+
#faDfDiamondCIplot(faDf, xlab=NULL) +
#faDfDiamondCIplot(faDf, xlab=NULL) +
ggplot2
::
ggtitle
(
titleString
);
# textGrob(paste0("Upper diag:\n", rowVar,
# " and ", colVar));
# textGrob(paste0("Upper diag:\n", rowVar,
# " and ", colVar));
}
else
{
grobsList
[[
rowIndex
]][[
colIndex
]]
<-
res
$
intermediate
$
diamondplots
[[
rowVar
]][[
colVar
]]
<-
factorLoadingHeatmap
(
res
$
intermediate
$
efas
[[
rowVar
]][[
colVar
]],
sortAlphabetically
=
TRUE
);
}
}
else
{
grobsList
[[
rowIndex
]][[
colIndex
]]
<-
grid
::
textGrob
(
'Not possible'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment