Skip to content

Instantly share code, notes, and snippets.

@StuntsPT
Created October 24, 2017 15:20
Show Gist options
  • Save StuntsPT/657d7b042324956e6d656c1e48cbcf41 to your computer and use it in GitHub Desktop.
Save StuntsPT/657d7b042324956e6d656c1e48cbcf41 to your computer and use it in GitHub Desktop.
Trends plot
#!/usr/bin/env Rscript
library(ggplot2)
trend = read.csv("/home/francisco/MEOCloud/Science/PhD/Thesis/Subdocs/C1_assets/Bioinformatics_pubmed.tsv", sep="\t")
ggplot(data=trend, aes(x=Year, y=X.000)) +
geom_bar(stat="identity", fill = I("lightblue")) +
guides(fill=FALSE) +
xlab("Year") + ylab("Number of papers with term per 100K pubmed papers") +
ggtitle("Pubmed Term 'Computational Biology' Trend") +
scale_x_continuous(breaks=c(1980,1985,1990,1995,2000,2005,2010,2016))
ggsave('Trend.svg')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment