服务热线
178 0020 3020
library(RISmed)
library(ggplot2)
paper_count <- function(keyword = "p53", start_date = 2000, end_date= 2017)
{
count <- c()
x<-1
for (i in start_date:end_date){
r <- EUtilsSummary(keyword, mindate = i, maxdate = i)
count[x] <- QueryCount(r)
x = x+1
}
data <- data.frame(year = start_date:end_date, count = count)
data
}
tumor_heterogeneity <- paper_count("tumor heterogeneity", 2000, 2017)
ggplot(tumor_heterogeneity, aes(x=year, y= count))+geom_bar(aes(fill=year), stat="identity")+xlab("year")+ylab("count")
附件