Statistical Computing with R / Items
ggplot2: Labelling Data Series and Adding a Data Table « Learning R
Get Feed
- 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 ThisTwine is about discovering, collecting and sharing the content that interests you. Learn More
Join TwineStats
- 2 Twines
- Make a comment
Who's Interested In This?
-
dekaysion added to Visualization, Statistical Computing with R 6 months ago
Public Comments
Add a Comment