Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon CHEVOLLEAU
Embryo functions
Commits
ba54ca47
Commit
ba54ca47
authored
Mar 09, 2022
by
Simon CHEVOLLEAU
💻
Browse files
Update
parent
26ee545d
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.R
View file @
ba54ca47
...
...
@@ -321,7 +321,8 @@ one_dimension <- function(x, annot, text_annot, name_annot, size_point = 3, segm
plot_annot
<-
c
(
plot_annot
,
annotate
(
"segment"
,
x
=
min_x
,
xend
=
max_x
,
y
=
count
,
yend
=
count
,
size
=
segment_size
,
arrow
=
arrow
(
length
=
unit
(
0.00
,
"cm"
),
type
=
"closed"
)))
# Avoid text overlap
plot_annot
<-
c
(
plot_annot
,
annotate
(
"text"
,
x
=
ifelse
(
count
%%
2
==
0
,
pos_text
[
1
],
pos_text
[
2
]),
y
=
count
,
label
=
text_annot
[[
count
+1
]],
angle
=
90
))
if
(
print_text_annot
)
plot_annot
<-
c
(
plot_annot
,
annotate
(
"text"
,
x
=
ifelse
(
count
%%
2
==
0
,
pos_text
[
1
],
pos_text
[
2
]),
y
=
count
,
label
=
text_annot
[[
count
+1
]],
angle
=
90
))
count
<-
count
+
1
}
...
...
Write
Preview
Supports
Markdown
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