Column

Houston


  |                                                                       
  |                                                                 |   0%
  |                                                                       
  |                                                                 |   1%
  |                                                                       
  |=                                                                |   1%
  |                                                                       
  |=                                                                |   2%
  |                                                                       
  |==                                                               |   2%
  |                                                                       
  |==                                                               |   3%
  |                                                                       
  |==                                                               |   4%
  |                                                                       
  |===                                                              |   4%
  |                                                                       
  |===                                                              |   5%
  |                                                                       
  |====                                                             |   5%
  |                                                                       
  |====                                                             |   6%
  |                                                                       
  |====                                                             |   7%
  |                                                                       
  |=====                                                            |   7%
  |                                                                       
  |=====                                                            |   8%
  |                                                                       
  |======                                                           |   9%
  |                                                                       
  |======                                                           |  10%
  |                                                                       
  |=======                                                          |  10%
  |                                                                       
  |=======                                                          |  11%
  |                                                                       
  |========                                                         |  12%
  |                                                                       
  |========                                                         |  13%
  |                                                                       
  |=========                                                        |  13%
  |                                                                       
  |=========                                                        |  14%
  |                                                                       
  |=========                                                        |  15%
  |                                                                       
  |==========                                                       |  15%
  |                                                                       
  |==========                                                       |  16%
  |                                                                       
  |===========                                                      |  16%
  |                                                                       
  |===========                                                      |  17%
  |                                                                       
  |===========                                                      |  18%
  |                                                                       
  |============                                                     |  18%
  |                                                                       
  |============                                                     |  19%
  |                                                                       
  |=============                                                    |  19%
  |                                                                       
  |=============                                                    |  20%
  |                                                                       
  |=============                                                    |  21%
  |                                                                       
  |==============                                                   |  21%
  |                                                                       
  |==============                                                   |  22%
  |                                                                       
  |===============                                                  |  22%
  |                                                                       
  |===============                                                  |  23%
  |                                                                       
  |===============                                                  |  24%
  |                                                                       
  |================                                                 |  24%
  |                                                                       
  |================                                                 |  25%
  |                                                                       
  |=================                                                |  26%
  |                                                                       
  |=================                                                |  27%
  |                                                                       
  |==================                                               |  27%
  |                                                                       
  |==================                                               |  28%
  |                                                                       
  |===================                                              |  28%
  |                                                                       
  |===================                                              |  29%
  |                                                                       
  |===================                                              |  30%
  |                                                                       
  |====================                                             |  30%
  |                                                                       
  |====================                                             |  31%
  |                                                                       
  |=====================                                            |  32%
  |                                                                       
  |=====================                                            |  33%
  |                                                                       
  |======================                                           |  33%
  |                                                                       
  |======================                                           |  34%
  |                                                                       
  |======================                                           |  35%
  |                                                                       
  |=======================                                          |  35%
  |                                                                       
  |=======================                                          |  36%
  |                                                                       
  |========================                                         |  36%
  |                                                                       
  |========================                                         |  37%
  |                                                                       
  |========================                                         |  38%
  |                                                                       
  |=========================                                        |  38%
  |                                                                       
  |=========================                                        |  39%
  |                                                                       
  |==========================                                       |  39%
  |                                                                       
  |==========================                                       |  40%
  |                                                                       
  |==========================                                       |  41%
  |                                                                       
  |===========================                                      |  41%
  |                                                                       
  |===========================                                      |  42%
  |                                                                       
  |============================                                     |  42%
  |                                                                       
  |============================                                     |  43%
  |                                                                       
  |============================                                     |  44%
  |                                                                       
  |=============================                                    |  44%
  |                                                                       
  |=============================                                    |  45%
  |                                                                       
  |==============================                                   |  45%
  |                                                                       
  |==============================                                   |  46%
  |                                                                       
  |==============================                                   |  47%
  |                                                                       
  |===============================                                  |  47%
  |                                                                       
  |===============================                                  |  48%
  |                                                                       
  |================================                                 |  48%
  |                                                                       
  |================================                                 |  49%
  |                                                                       
  |================================                                 |  50%
  |                                                                       
  |=================================                                |  50%
  |                                                                       
  |=================================                                |  51%
  |                                                                       
  |==================================                               |  52%
  |                                                                       
  |==================================                               |  53%
  |                                                                       
  |===================================                              |  53%
  |                                                                       
  |===================================                              |  54%
  |                                                                       
  |===================================                              |  55%
  |                                                                       
  |====================================                             |  55%
  |                                                                       
  |====================================                             |  56%
  |                                                                       
  |=====================================                            |  56%
  |                                                                       
  |=====================================                            |  57%
  |                                                                       
  |=====================================                            |  58%
  |                                                                       
  |======================================                           |  58%
  |                                                                       
  |======================================                           |  59%
  |                                                                       
  |=======================================                          |  59%
  |                                                                       
  |=======================================                          |  60%
  |                                                                       
  |=======================================                          |  61%
  |                                                                       
  |========================================                         |  61%
  |                                                                       
  |========================================                         |  62%
  |                                                                       
  |=========================================                        |  62%
  |                                                                       
  |=========================================                        |  63%
  |                                                                       
  |=========================================                        |  64%
  |                                                                       
  |==========================================                       |  64%
  |                                                                       
  |==========================================                       |  65%
  |                                                                       
  |===========================================                      |  65%
  |                                                                       
  |===========================================                      |  66%
  |                                                                       
  |===========================================                      |  67%
  |                                                                       
  |============================================                     |  67%
  |                                                                       
  |============================================                     |  68%
  |                                                                       
  |=============================================                    |  69%
  |                                                                       
  |=============================================                    |  70%
  |                                                                       
  |==============================================                   |  70%
  |                                                                       
  |==============================================                   |  71%
  |                                                                       
  |===============================================                  |  72%
  |                                                                       
  |===============================================                  |  73%
  |                                                                       
  |================================================                 |  73%
  |                                                                       
  |================================================                 |  74%
  |                                                                       
  |================================================                 |  75%
  |                                                                       
  |=================================================                |  75%
  |                                                                       
  |=================================================                |  76%
  |                                                                       
  |==================================================               |  76%
  |                                                                       
  |==================================================               |  77%
  |                                                                       
  |==================================================               |  78%
  |                                                                       
  |===================================================              |  78%
  |                                                                       
  |===================================================              |  79%
  |                                                                       
  |====================================================             |  79%
  |                                                                       
  |====================================================             |  80%
  |                                                                       
  |====================================================             |  81%
  |                                                                       
  |=====================================================            |  81%
  |                                                                       
  |=====================================================            |  82%
  |                                                                       
  |======================================================           |  82%
  |                                                                       
  |======================================================           |  83%
  |                                                                       
  |======================================================           |  84%
  |                                                                       
  |=======================================================          |  84%
  |                                                                       
  |=======================================================          |  85%
  |                                                                       
  |========================================================         |  85%
  |                                                                       
  |========================================================         |  86%
  |                                                                       
  |========================================================         |  87%
  |                                                                       
  |=========================================================        |  87%
  |                                                                       
  |=========================================================        |  88%
  |                                                                       
  |==========================================================       |  89%
  |                                                                       
  |==========================================================       |  90%
  |                                                                       
  |===========================================================      |  90%
  |                                                                       
  |===========================================================      |  91%
  |                                                                       
  |============================================================     |  92%
  |                                                                       
  |============================================================     |  93%
  |                                                                       
  |=============================================================    |  93%
  |                                                                       
  |=============================================================    |  94%
  |                                                                       
  |=============================================================    |  95%
  |                                                                       
  |==============================================================   |  95%
  |                                                                       
  |==============================================================   |  96%
  |                                                                       
  |===============================================================  |  96%
  |                                                                       
  |===============================================================  |  97%
  |                                                                       
  |===============================================================  |  98%
  |                                                                       
  |================================================================ |  98%
  |                                                                       
  |================================================================ |  99%
  |                                                                       
  |=================================================================|  99%
  |                                                                       
  |=================================================================| 100%
$daily_data
# A tibble: 32 x 3
   date         prcp prcp_reporting
   <date>      <dbl>          <int>
 1 2017-08-15 0                  37
 2 2017-08-16 0.0306             36
 3 2017-08-17 0.0886             35
 4 2017-08-18 0.0297             37
 5 2017-08-19 0.0737             38
 6 2017-08-20 0.0824             34
 7 2017-08-21 0.05               36
 8 2017-08-22 0.365              37
 9 2017-08-23 0.176              33
10 2017-08-24 2.50               37
# ... with 22 more rows

$station_metadata
# A tibble: 48 x 10
# Groups:   id [48]
   id     name   var   latitude longitude calc_coverage standard_dev   min
   <chr>  <chr>  <chr>    <dbl>     <dbl>         <dbl>        <dbl> <dbl>
 1 US1TX~ MISSI~ prcp      29.7     -95.7        0.188         119.    1.3
 2 US1TX~ KINGW~ prcp      30.0     -95.2        0.906          81.3   0  
 3 US1TX~ BUNKE~ prcp      29.8     -95.6        1              67.0   0  
 4 US1TX~ WEBST~ prcp      29.5     -95.1        1             100.    0  
 5 US1TX~ FRIEN~ prcp      29.5     -95.2        1             109.    0  
 6 US1TX~ SOUTH~ prcp      29.6     -95.3        1             111.    0  
 7 US1TX~ KINGW~ prcp      30.1     -95.2        1              66.4   0  
 8 US1TX~ TOMBA~ prcp      30.1     -95.7        0.0312        NaN    66  
 9 US1TX~ NASSA~ prcp      29.6     -95.1        0.812          29.8   0  
10 US1TX~ SPRIN~ prcp      29.8     -95.5        1              67.2   0  
# ... with 38 more rows, and 2 more variables: max <dbl>, range <dbl>

$station_map

One month rainfall in Houston

wind speed for Houston from August 2017 to September

Tempterature

each weather station

Column

Summary

Introduction

We analyzed the climate data of Harris County, Texas for the period from August 2017 to October 2017 from NOAA National Centers for Environmental Information website. The data set includes the volume of rainfall, wind speed, temperature, and precipitation in the Greater Houston area during this period as we consider these four elements are essential for forecasting the weather.

Harris County, Texas

Harris County is a county located in the U.S. state of Texas, located in the southeastern part of the state near Galveston Bay. As of the 2010 Census, the population was 4,092,459,[2] making it the most populous county in Texas and the third most populous county in the United States. Its county seat is Houston, the largest city in Texas and fourth largest city in the United States.

Rainfall in Houston

The station reported a rainfall during August 26 and 30. The maximum volume of rainfall occurred on August 27, reaching approximately 330 mm. The volume of rainfall gradually declined until August 30. It did not rain during the rest of reporting period.

Wind Speed

The wind speed varied from 0 mph to 4 mph during the observed period. The higher wind speeds appeared several days before and after the rainfall with the temperatures below 75 degrees Kelvin. When the rainfall occurred in the end of August, the wind speeds were as low as 2 mph. It is notable that the wind speed were low for the rest of the days.

Temperature

The temperature reached approximate 440 degrees Kelvin when it rained. The range of temperature during that time was from 400 degrees Kelvin to 475 degrees Kelvin. The temperature was low when it did not rain. The high end fell to 400 degrees Kelvin, and the low end fell below 275 degrees Kelvin.

Precipitation

Based on the precipitation reported by the stations, the chances of rain reached the highest on August 27. This graph fits well with the graph of rainfall.

Conclusion

It rained only once in Houston in late August. Interestingly, we found that there is a linear relationship between the volume of rainfall, temperature, and precipitation. In addition, the wind speeds were higher than usual before and after the rainfall. When the volume of rainfall was high, the temperature and precipitation were high as well.

---
title: "lab_2"
author: "Chen Liu, Bo Wang, Di Li, Li Wang"
date: "August 4, 2018"
output:
  flexdashboard::flex_dashboard:
    orientation: columns
    source_code: embed
    vertical_layout: fill
  html_document:
    df_print: paged
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = F)
options(noaakey = "owiYUStykynJaHHhJTOCpGpGpFmwnBsh")
library(flexdashboard)
library(rnoaa)
library(rgdal)
library(countyweather)
library(ggplot2)
library(dplyr)
library(lubridate)

```


Column {.tabset data-width=400}
----------------------------------------

### Houston
```{r,message=F, include=T}
harvey <- daily_fips(fips = "48201", date_min = "2017-08-15", date_max = "2017-09-15", var = "prcp")
harvey
```

###One month rainfall in Houston
```{r,message=FALSE, include=T}
ggplot(data=harvey$daily_data, aes(x=date, y=prcp, colour =prcp_reporting), show.legend=T)+ geom_line()+geom_point()+theme_light()+xlab("Date")+ylab("Rain Fall") + scale_color_continuous(name="Station Reporting") + ggtitle("Rain Fall in Houston")
```

###wind speed for Houston from August 2017 to September
```{r,message=FALSE, include=FALSE}
harvey_wind <- hourly_fips(fips = "48201", year=2017, var = "wind_speed")
```
```{r,message=FALSE, include=T}
harvey_wind_plot <- harvey_wind$hourly_data %>% filter(months(date_time) == "August" | months(date_time) == "September")
ggplot(data=harvey_wind_plot, aes(x=date_time, y=wind_speed, colour = wind_speed_reporting)) + geom_line() + theme_light() + xlab("Date") + ylab("Wind Speed")
```

###Tempterature
```{r,message=FALSE, include=FALSE}
harvey_temp <- hourly_fips(fips = "48201", year=2017, var = "temperature")
```

```{r,message=FALSE, include=T}
harvey_temp_plot <- harvey_temp$hourly_data %>% filter(months(date_time) == "August" | months(date_time) == "September")
ggplot(data=harvey_temp_plot, aes(x=date_time, y=temperature, colour = temperature_reporting)) + geom_smooth() + theme_light() + xlab("Date") + ylab("Temp")
```


###each weather station
```{r,message=FALSE, include=T}
each_station <- daily_fips(fips = "48201", date_min = "2017-08-15", date_max = "2017-09-15",
                           var = "prcp", average_data = FALSE, station_label = TRUE)
ggplot(data=each_station$daily_data, aes(x=date, y=prcp, colour=id))+geom_line()+theme_light()
```


Column {.tabset data-width=200}
----------------------------------------
###Summary
Introduction

We analyzed the climate data of Harris County, Texas for the period from August 2017 to October 2017 from NOAA National Centers for Environmental Information website. The data set includes the volume of rainfall, wind speed, temperature, and precipitation in the Greater Houston area during this period as we consider these four elements are essential for forecasting the weather.


Harris County, Texas

Harris County is a county located in the U.S. state of Texas, located in the southeastern part of the state near Galveston Bay. As of the 2010 Census, the population was 4,092,459,[2] making it the most populous county in Texas and the third most populous county in the United States. Its county seat is Houston, the largest city in Texas and fourth largest city in the United States.


Rainfall in Houston

The station reported a rainfall during August 26 and 30. The maximum volume of rainfall occurred on August 27, reaching approximately 330 mm. The volume of rainfall gradually declined until August 30. It did not rain during the rest of reporting period.


Wind Speed

The wind speed varied from 0 mph to 4 mph during the observed period. The higher wind speeds appeared several days before and after the rainfall with the temperatures below 75 degrees Kelvin. When the rainfall occurred in the end of August, the wind speeds were as low as 2 mph. It is notable that the wind speed were low for the rest of the days.


Temperature

The temperature reached approximate 440 degrees Kelvin when it rained. The range of temperature during that time was from 400 degrees Kelvin to 475 degrees Kelvin. The temperature was low when it did not rain. The high end fell to 400 degrees Kelvin, and the low end fell below 275 degrees Kelvin.


Precipitation

Based on the precipitation reported by the stations, the chances of rain reached the highest on August 27. This graph fits well with the graph of rainfall.


Conclusion

It rained only once in Houston in late August. Interestingly, we found that there is a linear relationship between the volume of rainfall, temperature, and precipitation. In addition, the wind speeds were higher than usual before and after the rainfall. When the volume of rainfall was high, the temperature and precipitation were high as well.