install.packages("devtools")
library("devtools")
install_github("sgtools", "sgibb")
fetches query counts from arxiv database grouped by years
example:
library("sgtools")
bayes <- fetchArxiv("cat:stat.AP AND abs:Bayes", 2009, 2010)
bayes
# year counts
#[1,] 2009 4
#[2,] 2010 13
fetches query counts from pubmed database grouped by years
Thanks to Kristoffer Magnusson for providing this nice article: An R Script to Automatically download PubMed Citation Counts By Year of Publication
example:
library("sgtools")
ms <- fetchPubmed("Mass Spectrometry[MeSH]", 2009, 2010)
ms
# year counts
#[1,] 2009 10829
#[2,] 2010 11143
total <- fetchPubmed("", 1975, 2011);
barplot(total[, "counts"], names.arg=as.character(total[, "year"]),
main="total number of publications in pubmed", col="#7FC97F")
computes histogram for a list of data
example:
library("sgtools")
x <- lapply(c(1, 1.1, 4), rnorm, n=1000)
multipleHist(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.