Hi there,
I am relatively new to using tidyverse packages. After great success yesterday, I ran into issues today after updating some packages when installing plotly
.
Earlier today I was having no trouble running the following code and producing a bar graph.
june<-read.csv("june_EUKinteractionsummary.csv", header = TRUE)
head(june)
tidyjun<-gather(june,na.rm=TRUE)
head(tidyjun)
tidyjun %>% group_by(key,value) %>% tally(sort=TRUE) %>% filter(value!="") %>%
ggplot(aes(x=key,y=n,fill=value)) + geom_bar(stat="identity",color="black",size=0.2)
Now, when I try and run this I get the following error.
Error in arrange_impl(.data, dots) :
Evaluation error: `as_dictionary()` is defunct as of rlang 0.3.0.
Please use `as_data_pronoun()` instead.
Or when I run:
tidyjun %>% group_by(key,value) %>%
tally %>%
mutate(value = ifelse(n < 20, "Taxa with <20 interactions", value)) %>%
group_by(key, value) %>%
summarize(n = sum(n)) %>%
filter(value!="") %>%
mutate(value=factor(value, levels=c("A","B","C","D","E","F","Taxa with <20 interactions"))) %>%
ggplot(aes(x=key,y=n,fill=value)) + geom_bar(stat="identity",color="black",size=0.2) + labs(title="June Eukaryotic Interaction Breakdown", y="Number of Edges") + theme(legend.position="bottom")
I get the following error:
Error in mutate_impl(.data, dots) :
Evaluation error: `as_dictionary()` is defunct as of rlang 0.3.0.
Please use `as_data_pronoun()` instead.
Does anyone know of a work around for this or a way I can change my code so that it it works again. I have a feeling that a lot of the code I have for ggplot2 and dplyr won't work anymore now....
Thank you so much!
Colleen