Flexdashboard: Example One

This is my first flexdashboard project. I use the median value and rm columns of Boston Hosuing dataset to illustrate how to build a flexdashboard with R. Also, a shiny version has been uploaded to my shinyapp.io page.

Alier Reng https://www.rengdatascience.io/

library(MASS) # Load this package.

data(Boston) # Load package Boston housing dataset.

hist_data <- Boston %>% 
  ggplot(aes(x = medv)) +
  geom_histogram(bins = 30, color = "white", fill = "darkgreen") +
  ggtitle("Histogram of Median Value of the Owner-occupied\n Homes in Boston Suburbs (in $1000s)") +
  ylab("Number of Owner-occupied Homes") +
  xlab("Median Value of the Owner-occupied Homes in Boston Suburbs (in $1000s)") +
  theme(plot.title = element_text(hjust = 0.5, color = "black")) 

(hist_data) # Print te graph.


For attribution, please cite this work as

Reng (2019, March 16). Reng Data Science Institute: Flexdashboard: Example One. Retrieved from https://www.rengdatascience.io/posts/2019-03-16-flexdashboardexample-one/

BibTeX citation

  author = {Reng, Alier},
  title = {Reng Data Science Institute: Flexdashboard: Example One},
  url = {https://www.rengdatascience.io/posts/2019-03-16-flexdashboardexample-one/},
  year = {2019}