Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
bird_pipeline_registry
SRP-pipeline
Commits
bf852fdc
Commit
bf852fdc
authored
Sep 16, 2020
by
Philippe BORDRON
Browse files
Update interactive pca
parent
d15ff486
Changes
1
Hide whitespace changes
Inline
Side-by-side
SCRIPTS/DE/qualityControl.R
View file @
bf852fdc
...
...
@@ -78,9 +78,11 @@ acp2d<-function(pca, comp=1:2, group=NULL, plotVars = FALSE, pointSize=2, plotTe
legend.text
=
element_text
(
size
=
legend_text_size
)
# manage legend text size according to number of conditions
)
graph
<-
graph
+
theme
graph
<-
graph
+
guides
(
col
=
guide_legend
(
graph
<-
graph
+
guides
(
col
=
guide_legend
_interactive
(
ncol
=
ifelse
(
ngroup
==
0
,
NULL
,
ceiling
(
ngroup
/
24
)),
# limit the number of columns to keep the plot large enough; maybe take legend_text_size
override.aes
=
list
(
size
=
legend_text_size
/
(
2
*
pointSize
))
# adjust dot size into legend
keywidth
=
unit
(
round
(
legend_text_size
/
(
2
*
pointSize
))
+
8
,
"points"
),
# adjust dot box size into legend for ggiraph
keyheight
=
unit
(
round
(
legend_text_size
/
(
2
*
pointSize
))
+
8
,
"points"
),
# ggiraph do not use point as std unit
override.aes
=
list
(
size
=
legend_text_size
/
(
2
*
pointSize
))
# adjust dot size into legend
))
graph
<-
graph
+
functPlot
(
size
=
pointSize
,
tooltip
=
rownames
(
d
))
+
...
...
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