Created
January 26, 2017 15:34
-
-
Save aammd/1e9e1cde27951455ea410a7d9c9bcb9e to your computer and use it in GitHub Desktop.
fake exponential growth with error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(ggplot2) | |
data_frame(x = seq(2001, 2016, by = 2), | |
y = exp(rnorm(length(x), mean = 0.3, sd = 0.03)*(x - 2000))) %>% | |
ggplot(aes(x = x, y = y)) + geom_point() + geom_line() + | |
labs(x = "Year", | |
y = "Cumulative number of papers", | |
title = "Number of papers with a 'Number of papers' figure") + | |
theme_bw() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment