Lab 04 - Data Visualization

Learning Goals

Lab Description

We will again work with the meteorological data presented in lecture.

The objective of the lab is to examine the association between weekly average dew point temperature and wind speed in four regions of the US and by elevation.

Steps

1. Read in the data

First download and then read in with data.table:fread()

2. Prepare the data

3. Use geom_violin to examine the wind speed and dew point temperature by region

You saw how to use geom_boxplot in class. Try using geom_violin instead (take a look at the help). (hint: You will need to set the x aesthetic to 1)

4. Use geom_jitter with stat_smooth to examine the association between dew point temperature and wind speed by region

5. Use geom_bar to create barplots of the weather stations by elevation category coloured by region

6. Use stat_summary to examine mean dew point and wind speed by region with standard deviation error bars

7. Make a map showing the spatial trend in relative humidity (rh) in the US

8. Use a ggplot extension