Update Difference Between Data Frame Observations by Day.R
This commit is contained in:
parent
c52658b4ff
commit
00c6abfe17
|
|
@ -82,13 +82,15 @@ fill_bar <- case_when(
|
||||||
df_merged2 %>%
|
df_merged2 %>%
|
||||||
top_n(50) %>%
|
top_n(50) %>%
|
||||||
mutate(word = reorder(word, result)) %>%
|
mutate(word = reorder(word, result)) %>%
|
||||||
ggplot(aes(word, result)) +
|
ggplot(aes(word, result, fill = result)) +
|
||||||
theme(legend.position = "none", axis.title.y = element_blank()) +
|
theme(legend.position = "none", axis.title.y = element_blank()) +
|
||||||
geom_bar(stat = "identity", fill = fill_bar) +
|
geom_bar(stat = "identity") +
|
||||||
labs(
|
labs(
|
||||||
title = "Difference of Word Count from Day 2 - Day 1",
|
title = "Difference of Word Count from Today - Yesterday",
|
||||||
x = "Words",
|
x = "Words",
|
||||||
y = "Count",
|
y = "Count",
|
||||||
caption = "Positive integers = More mentions on day 2
|
caption = "Positive integers = More mentions today.
|
||||||
Negative integers = Less mentions on day 2.") +
|
Negative integers = Less mentions today.",
|
||||||
coord_flip()
|
fill = "Results") +
|
||||||
|
coord_flip() +
|
||||||
|
theme_dark(base_size = 13)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue