knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(bibliographeR) library(dplyr) library(tidyr) library(plotly) library(ggplot2)
xml <- get_ids(query = "oyster herpesvirus") %>% get_xml()
Example with authors, but you can choose "title", "authors", "year", "journal", "volume", "issue", "pages", "key_words", "doi", "pmid", "abstract"
authors <- xml %>% make_df("authors") authors %>% count(authors, sort = TRUE) authors <- authors %>% separate(authors, c("lastname", "firstname"), ", ") authors %>% count(lastname, sort = TRUE)
plot_evo <- xml %>% make_df("year") %>% count(year, sort = TRUE) %>% arrange(year) %>% mutate(nb_paper = cumsum(n), year = as.numeric(year)) %>% ggplot(aes(x = year, y = nb_paper )) + geom_line() + geom_point(col = "red") ggplotly(plot_evo)
xml %>% get_citations()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.