Created
July 31, 2018 03:16
-
-
Save jayhesselberth/d4e9d85634717234665b6d4d1623fb96 to your computer and use it in GitHub Desktop.
This file contains 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
``` r | |
library(nihexporter) | |
#> Loading required package: jsonlite | |
#> Loading required package: httr | |
#> Loading required package: dplyr | |
#> | |
#> Attaching package: 'dplyr' | |
#> The following objects are masked from 'package:stats': | |
#> | |
#> filter, lag | |
#> The following objects are masked from 'package:base': | |
#> | |
#> intersect, setdiff, setequal, union | |
library(tidyverse) | |
projects %>% | |
filter(activity == "F31") %>% | |
count(institute, activity, fiscal.year) %>% | |
ggplot(aes(x = fiscal.year, y = n)) + | |
geom_point() + geom_line() + | |
facet_wrap(~ institute) + | |
labs( | |
title = "F31 grant funding by institute" | |
) | |
#> geom_path: Each group consists of only one observation. Do you need to | |
#> adjust the group aesthetic? | |
``` | |
 | |
Created on 2018-07-30 by the [reprex package](http://reprex.tidyverse.org) (v0.2.0). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2018-07-30 by the reprex package (v0.2.0).