ggplot2-solutions icon indicating copy to clipboard operation
ggplot2-solutions copied to clipboard

My solutions to exercises in Hadley Wickham's "ggplot2: Elegant Graphics for Data Analysis" 2ed

Results 16 ggplot2-solutions issues
Sort by recently updated
recently updated
newest added

Dear Kangnade I don´t understant how you where able fo find the answer for this exercise. How you where able to identidy that geom smooth() uses the geoms geom_point(), geom_path(),...

The exercise is know > Which player in the Batting dataset has had the most consistently good performance over the course of their career? https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter10.Rmd#L399 Having no field background knowledge,...

The question asks: >In the baseball example, the batting average seems to increase as the number of at bats increases. Why? https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter10.Rmd#L373 I'm not a baseball fan neither. But maybe...

The exercise is to >For each combination of diamond quality (e.g. cut, colour and clarity), count the number of diamonds, the average price and the average size. Visualize the results....

The exercise is to > Compare the distribution of symmetry for diamonds with x > y vs. x < y. 1. Symmetry, is defined in chapter 10.3 as `x-y`. Not...

The exercise is to know: >What transformation makes it easier to extract outliers? https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter10.Rmd#L188 I believe using the square root transformation can help identify extreme outliers first: `ggplot(diamonds, aes(x,z)) +`...

The exercise is to: > Install the ggplot2movies package and look at the movies that have a missing budget. How are they different from the movies with a budget? As...

https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter10.Rmd#L29 The task is to filter the diamonds dataset for diamonds with: > A depth between 55 and 70. Shouldn't we use < & > operators to get the values...

https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter9.Rmd#L63 Install the EDAWR package as mentioned in issue #7. To tidy the who dataset, one must deal with multiple variables in column names. This is done using either the...

https://github.com/kangnade/ggplot2-solutions/blob/e6ef9e3b271599f6e97afc0f8a3f012f276f9385/ggplot2_solutions_chapter9.Rmd#L56 The question requires installing the [EDAWR](https://github.com/rstudio/EDAWR) package from GitHub. As indicated, installation is done by `devtools::install_github("rstudio/EDAWR")` using the package [devtools](https://cran.r-project.org/web/packages/devtools/index.html). The question says: > Tidy the storms, population and...