Author: Karolina Potterton
library(tidyverse) ```> ggplot(filtered_NSF_Funding, aes(x=reorder(Organization, AWARD_SUM), y=AWARD_SUM)) + + geom_bar(stat=“identity”, fill=“steelblue”) + + theme(axis.text.x = element_text(angle=65, hjust=1)) + + labs(x=“Institution”, y=“Sum of Awards”, title=“Sum of Awards per Institution in 2012”)
library(tidyverse) ```> ggplot(filtered_NSF_Funding, aes(x=AWARD_COUNT, y=AWARD_SUM)) + + geom_point(aes(color=Organization), size=3) + + labs(x=“Count of Awards”, y=“Sum of Awards”, title=“Relationship between Count and Sum of Awards in 2012”)
library(tidyverse) > ggplot(filtered_NSF_Funding, aes(x=AWARD_COUNT, y=AWARD_SUM, size=AvarageAwardDuration)) + + geom_point(aes(color=Organization), alpha=0.6) + + labs(x=“Count of Awards”, y=“Sum of Awards”, size=“Average Award Duration”, title=“Bubble Plot of Awards in 2012”) + + theme(legend.position=“right”)
library(tidyverse) > # Overall Time Series Plot > ggplot(filtered_NSF_Funding, aes(x=AwardYear, y=AWARD_SUM, group=Organization, color=Organization)) + + geom_line() + + geom_point() + + theme_minimal() + + labs(x=“Year”, y=“Sum of Awards”, title=“Time Series of Awards Sum Over Years”) ```
library(tidyverse) ```> # Small Multiples Time Series Plot > ggplot(filtered_NSF_Funding, aes(x=AwardYear, y=AWARD_SUM)) + + geom_line() + + geom_point() + + theme_minimal() + + labs(x=“Year”, y=“Sum of Awards”, title=“Small Multiples of Awards Sum Over Years”) + + facet_wrap(~Organization, scales=“free_y”, ncol=1) + + theme(legend.position=“none”)