Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
e2b4c1eb
Commit
e2b4c1eb
authored
Aug 31, 2017
by
Romain Feron
Browse files
Minor fix to plot scripts
parent
f97cdd74
Changes
2
Hide whitespace changes
Inline
Side-by-side
radseq_analysis/visualization/r_scripts/clustering_species.R
View file @
e2b4c1eb
...
...
@@ -12,7 +12,7 @@ popmap_file_path = args[nargs - 1]
output_dir_path
=
args
[
nargs
]
if
(
substr
(
output_dir_path
,
nchar
(
output_dir_path
),
nchar
(
output_dir_path
))
!=
"/"
)
{
output_dir_path
=
cat
(
output_dir_path
,
"/"
)
output_dir_path
=
paste
(
output_dir_path
,
"/"
,
sep
=
""
)
}
script_dir
=
""
...
...
radseq_analysis/visualization/r_scripts/frequencies.R
View file @
e2b4c1eb
...
...
@@ -22,7 +22,7 @@ colnames(data) = c("Frequency", "Count")
g
=
ggplot
(
data
,
aes
(
x
=
Frequency
,
y
=
Count
/
sum
(
Count
)))
+
geom_bar
(
stat
=
"identity"
,
colour
=
"black"
,
fill
=
"#CCCCCC"
)
+
ggtitle
(
paste
(
"Total tags: "
,
sum
(
data
$
Count
),
sep
=
''
))
+
theme
(
plot.title
=
element_text
(
hjust
=
0.5
))
+
xlab
(
"Number of individuals in which a tag is present"
)
+
ylab
(
"Frequency (%)"
)
+
xlab
(
"Number of individuals in which a tag is present"
)
+
ylab
(
"Frequency
of haplotypes
(%)"
)
+
scale_y_continuous
(
labels
=
percent
)
png
(
output_file_path
,
width
=
1600
,
height
=
1000
,
res
=
130
)
...
...
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