- Applied Data Visualization with R and ggplot2
- Dr. Tania Moulik
- 224字
- 2021-07-23 16:59:45
Analyzing Different Datasets
We all love to talk about the weather. So, let's work with some weather-related datasets. The datasets contain approximately five years' worth of high-temporal resolution (hourly measurements) data for various weather attributes, such as temperature, humidity, air pressure, and so on. We'll analyze and compare the humidity and weather datasets.
Read more about weather datasets at: https://www.kaggle.com/selfishgene/historical-hourly-weather-data.
Let's begin by implementing the following steps:
- Load the humidity dataset by using the following command:
df_hum <- read.csv("data/historical-hourly-weather-data/humidity.csv")
- Load the weather description dataset by using the following command:
df_desc <- read.csv("data/historical-hourly-weather-data/weather_description.csv")
- Compare the two datasets by using the str command.
The outcome will be the humidity levels of different cities, as follows:
The weather descriptions of different cities are shown as follows:
The different geometric objects that we will be working with in this chapter are as follows:
One-dimensional objects are used to understand and visualize the characteristics of a single variable, as follows:
- Histogram
- Bar chart
Two-dimensional objects are used to visualize the relationship between two variables, as follows:
- Bar chart
- Boxplot
- Line chart
- Scatter plot
Although geometric objects are also used in base R, they don't follow the structure of the Grammar of Graphics and have different naming conventions, as compared to ggplot2. This is an important distinction, which we will look at in detail later.
- Hands-On Deep Learning with Apache Spark
- PPT,要你好看
- Dreamweaver CS3+Flash CS3+Fireworks CS3創(chuàng)意網站構建實例詳解
- Mastering D3.js
- 傳感器技術應用
- 完全掌握AutoCAD 2008中文版:機械篇
- 單片機C語言應用100例
- Visual FoxPro程序設計
- Word 2007,Excel 2007辦公應用融會貫通
- 單片機技能與實訓
- Mastering OpenStack(Second Edition)
- 常用傳感器技術及應用(第2版)
- Hands-On Microservices with C#
- 巧學活用AutoCAD
- PVCBOT零基礎機器人制作(第2版)