One of the best dashboards that I have come across is V-lab (Volatility Lab) by NYU Stern which is a risk monitor dashboard. It has a ton of information but the data is layered smartly. It allows to choose risk measures and visualize risk across industries, markets, or countries. Another good dashboard is ASU Carey’s finance department rankings. Though it does not have any graphs, the dashboard has a simple layout with layers of information. It shows rankings of finance departments, but once you click on a college, it provides additional research information like papers, journals, and authors. I believe simple dashboards with deep layers of visualizations make dashboards impressive. Additionally, dashboard supplied with real time data ensures current information is available.
library(tidyverse)
library(plotly)
library(gapminder)
library(ggrepel)
View(gapminder)
Do the following:
geom_point()).plot_dynamic <- gapminder %>%
filter(continent != "Oceania",
year == 2007) %>%
ggplot(aes(x = lifeExp, y = log(gdpPercap),
size = pop, color = continent)) +
geom_point(aes(frame = year)) +
guides(size = "none",
color = "none") +
geom_label_repel(data = gapminder %>% filter(year == 2007,
country %in% c("China", "India", "United States")),
aes(label = country)) +
labs(x = "Life Expectancy",
y = "GDP Per Capita (Log)",
title = "Life Expectancy in 2007") +
theme_minimal()
plot_dynamic
ggplotly().plotly::ggplotly(plot_dynamic)
Good luck and have fun!
plot_fancy_label <- gapminder %>%
filter(continent != "Oceania",
year == 2007) %>%
mutate(fancy_label = paste0(country, "<br>",
"Life Expectancy: ", lifeExp, "<br>",
"Population: ", round(pop * 1e-6, 2), " M")) %>%
ggplot(aes(x = lifeExp, y = log(gdpPercap),
size = pop, color = continent)) +
geom_point(aes(text = fancy_label)) +
guides(size = "none") +
labs(x = "Life Expectancy",
y = "GDP Per Capita (Log)",
title = "Life Expectancy in 2007",
color = "Continent") +
theme_minimal()
ggplotly(plot_fancy_label, tooltip = "text")
Install the {flexdashboard} package and create a new R Markdown file in your project by going to File > New File… > R Markdown… > From Template > Flexdashboard.
Using the documentation for {flexdashboard} online, create a basic dashboard that shows a plot (static or interactive) in at least three chart areas. Play with the layout if you’re feeling brave.