Guest / Items

ggplot2: Labelling Data Series and Adding a Data Table « Learning R

Get Feed
ggplot2: Labelling Data Series and Adding a Data Table « Learning R
Description

Stephen Few has posted on his website a few design examples on how to improve the presentation of quantitative information.

One of the examples is depicting the average monthly temperature in three cities.

This post tries to replicate the graph in ggplot2 , and demonstrate how to label data series, and how to add a data table to the plot.

The first step after importing the data is to convert it from wide format to long format, and replace the long month names with abbreviations, after which it is time to have a first look at the data.

library(ggplot2)

df

Original URL

Comments

Report This

Twine is about discovering, collecting and sharing the content that interests you. Learn More

Join Twine

Stats

First Posted By

Tags

Community Tags

Who's Interested In This?

Forgot your password?