Skip to content

Commit 84f5d9c

Browse files
committed
Integrate contents of old home page
Polish readme.
1 parent 787ae28 commit 84f5d9c

File tree

4 files changed

+124
-17
lines changed

4 files changed

+124
-17
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ visual_test
1414
^codecov\.yml$
1515
^_pkgdown\.yml$
1616
^icons$
17+
^README\.Rmd$
18+
^README-.*\.png$

README.Rmd

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
output: github_document
3+
---
4+
5+
<!-- README.md is generated from README.Rmd. Please edit that file -->
6+
7+
```{r, echo = FALSE}
8+
knitr::opts_chunk$set(
9+
collapse = TRUE,
10+
comment = "#>",
11+
fig.path = "README-"
12+
)
13+
```
14+
15+
# ggplot2 <img src="logo.png" align="right" />
16+
17+
[![Build Status](https://travis-ci.org/tidyverse/ggplot2.svg?branch=master)](https://travis-ci.org/tidyverse/ggplot2)
18+
[![Coverage Status](https://img.shields.io/codecov/c/github/tidyverse/ggplot2/master.svg)](https://codecov.io/github/tidyverse/ggplot2?branch=master)
19+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ggplot2)](http://cran.r-project.org/package=ggplot2)
20+
21+
## Overview
22+
23+
ggplot2 is a system for declaratively creating graphics, based on [The Grammar of Graphics](http://amzn.to/2ef1eWp). You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
24+
25+
## Installation
26+
27+
```{r, eval = FALSE}
28+
# The easiest way to get ggplot2 is to install the whole tidyverse:
29+
install.packages("tidyverse")
30+
31+
# Alternatively, install just readr:
32+
install.packages("ggplot2")
33+
34+
# Or the the development version from GitHub:
35+
# install.packages("devtools")
36+
devtools::install_github("tidyverse/ggplot2")
37+
```
38+
39+
## Learning ggplot2
40+
41+
ggplot2 is a comprehensive system for generating visualisations, so if you are new to ggplot2 you are better off starting with a systematic introduction, rather than trying to learn from reading individual documentation pages. Currently, there are three good places to start:
42+
43+
1. The [data visualisation][r4ds-vis] and
44+
[graphics forcommunication][r4ds-comm] chapters in
45+
[R for data science][r4ds]. R for data science is designed to
46+
give you a comprehensive introduction to the
47+
[tidyverse](http://tidyverse.org), and these two chapters will
48+
you get up to speed with the essentials of ggplot2 as quickly as
49+
possible.
50+
51+
1. If you'd like to take an interactive online course, try
52+
[Data visualisation with ggplot2][datacamp] by Rick Scavetta
53+
on datacamp.
54+
55+
1. If you want to dive into making common graphics as quickly
56+
as possible, I recommend [The R Graphics Cookbook][cookbook]
57+
by Winston Chang. It provides a set of recipes to solve common
58+
graphics problems. A 2nd edition will is due out in 2017.
59+
60+
If you've mastered the basics and want to learn more, read [ggplot2: Elegant Graphics for Data Analysis][ggplot2-book]. It describes the theoretical underpinnings of ggplot2 and shows you how all the pieces fit together. This book helps you understand the theory that underpins ggplot2, and will help you create new types of graphic specifically tailored to your needs. The book is not available for free, but you can find the complete source for the book at <https://github.com/hadley/ggplot2-book>.
61+
62+
## Getting help
63+
64+
There are two main places to get help with ggplot2:
65+
66+
1. The [ggplot2 mailing list][ml] is a friendly place to ask any
67+
questions about ggplot2. You must be a member to post messages,
68+
but anyone can read the archived discussions.
69+
70+
1. [stackoverflow](so) is a great source of answers to common ggplot2
71+
questions. It is also a great place to get help, once you have
72+
created a reproducible example that illustrates your problem.
73+
74+
[ggplot2-book]: http://amzn.to/2fncG50
75+
[gg-book]: http://amzn.to/2ef1eWp
76+
[ml]: https://groups.google.com/forum/?fromgroups#!forum/ggplot2
77+
[so]: http://stackoverflow.com/questions/tagged/ggplot2?sort=frequent&pageSize=50
78+
[cookbook]: http://amzn.to/2dVfMfn
79+
[r4ds]: http://r4ds.had.co.nz
80+
[r4ds-vis]: http://r4ds.had.co.nz/data-visualisation.html
81+
[r4ds-comm]: http://r4ds.had.co.nz/graphics-for-communication.html
82+
[datacamp]: https://www.datacamp.com/courses/data-visualization-with-ggplot2-1

README.md

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,48 @@
1-
# ggplot2 <img src="logo.png" align="right" />
21

3-
[![Build Status](https://travis-ci.org/hadley/ggplot2.svg?branch=master)](https://travis-ci.org/hadley/ggplot2)
4-
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ggplot2)](http://cran.r-project.org/package=ggplot2)
2+
<!-- README.md is generated from README.Rmd. Please edit that file -->
3+
ggplot2 <img src="logo.png" align="right" />
4+
============================================
55

6-
## Overview
6+
[![Build Status](https://travis-ci.org/tidyverse/ggplot2.svg?branch=master)](https://travis-ci.org/tidyverse/ggplot2) [![Coverage Status](https://img.shields.io/codecov/c/github/tidyverse/ggplot2/master.svg)](https://codecov.io/github/tidyverse/ggplot2?branch=master) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/ggplot2)](http://cran.r-project.org/package=ggplot2)
77

8-
ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and avoid bad parts. It takes care of many of the fiddly details
9-
that make plotting a hassle (like drawing legends) as well as providing a powerful model of graphics that makes it easy to produce complex multi-layered graphics.
8+
Overview
9+
--------
1010

11-
Find out more at <http://ggplot2.org>, and check out the nearly 500
12-
examples of ggplot in use. If you're interested, you can also sign up to
13-
the ggplot2 mailing list at <https://groups.google.com/group/ggplot2>.
11+
ggplot2 is a system for declaratively creating graphics, based on [The Grammar of Graphics](http://amzn.to/2ef1eWp). You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
1412

15-
## Installation
13+
Installation
14+
------------
1615

17-
Get the released version from CRAN:
16+
``` r
17+
# The easiest way to get ggplot2 is to install the whole tidyverse:
18+
install.packages("tidyverse")
1819

19-
```R
20+
# Alternatively, install just readr:
2021
install.packages("ggplot2")
21-
```
22-
23-
Or the development version from github:
2422

25-
```R
23+
# Or the the development version from GitHub:
2624
# install.packages("devtools")
27-
devtools::install_github("hadley/ggplot2")
25+
devtools::install_github("tidyverse/ggplot2")
2826
```
27+
28+
Learning ggplot2
29+
----------------
30+
31+
ggplot2 is a comprehensive system for generating visualisations, so if you are new to ggplot2 you are better off starting with a systematic introduction, rather than trying to learn from reading individual documentation pages. Currently, there are three good places to start:
32+
33+
1. The [data visualisation](http://r4ds.had.co.nz/data-visualisation.html) and [graphics forcommunication](http://r4ds.had.co.nz/graphics-for-communication.html) chapters in [R for data science](http://r4ds.had.co.nz). R for data science is designed to give you a comprehensive introduction to the [tidyverse](http://tidyverse.org), and these two chapters will you get up to speed with the essentials of ggplot2 as quickly as possible.
34+
35+
2. If you'd like to take an interactive online course, try [Data visualisation with ggplot2](https://www.datacamp.com/courses/data-visualization-with-ggplot2-1) by Rick Scavetta on datacamp.
36+
37+
3. If you want to dive into making common graphics as quickly as possible, I recommend [The R Graphics Cookbook](http://amzn.to/2dVfMfn) by Winston Chang. It provides a set of recipes to solve common graphics problems. A 2nd edition will is due out in 2017.
38+
39+
If you've mastered the basics and want to learn more, read [ggplot2: Elegant Graphics for Data Analysis](http://amzn.to/2fncG50). It describes the theoretical underpinnings of ggplot2 and shows you how all the pieces fit together. This book helps you understand the theory that underpins ggplot2, and will help you create new types of graphic specifically tailored to your needs. The book is not available for free, but you can find the complete source for the book at <https://github.com/hadley/ggplot2-book>.
40+
41+
Getting help
42+
------------
43+
44+
There are two main places to get help with ggplot2:
45+
46+
1. The [ggplot2 mailing list](https://groups.google.com/forum/?fromgroups#!forum/ggplot2) is a friendly place to ask any questions about ggplot2. You must be a member to post messages, but anyone can read the archived discussions.
47+
48+
2. [stackoverflow](so) is a great source of answers to common ggplot2 questions. It is also a great place to get help, once you have created a reproducible example that illustrates your problem.

_pkgdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ template:
44

55
home:
66
strip_header: true
7+
links:
8+
- text: Learn more
9+
href: http://r4ds.had.co.nz/data-visualisation.html
710

811
reference:
912
- title: Plot basics

0 commit comments

Comments
 (0)