Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
courses
workshop_git
Commits
5b71b75a
Commit
5b71b75a
authored
Nov 28, 2019
by
eboulanger
Browse files
feature 1bis script 3
parent
fce3f8ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/script3.R
View file @
5b71b75a
...
...
@@ -5,6 +5,7 @@ library(tidyr)
# Features:
# 1) Change colors of birds names to the color of the line
# 1 bis) pretty legend
# 2) Change point shape to triangle
# Import data
...
...
@@ -74,7 +75,8 @@ ggplot(ranked, aes(x=date, y=rank)) +
subtitle
=
"Daily Progression of Top 10 Rankings"
,
y
=
""
,
x
=
"Voting Period"
,
color
=
"Bird Breed"
)
+
theme
(
panel.background
=
element_rect
(
fill
=
NA
),
axis.ticks.y
=
element_line
(
size
=
NA
))
theme
(
legend.key
=
element_rect
(
fill
=
NA
),
panel.background
=
element_rect
(
fill
=
NA
),
axis.ticks.y
=
element_line
(
size
=
NA
))
# Save
ggsave
(
'plots/script3_EB.png'
,
width
=
10
,
height
=
8
)
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