Created
April 25, 2019 22:11
-
-
Save dgkeyes/e5c27968b3468bf07820c75aae205b52 to your computer and use it in GitHub Desktop.
histogram solutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Histogram | |
Make a histogram that shows the distribution of the weight variable. | |
```{r} | |
ggplot(data = nhanes, | |
mapping = aes(x = weight)) + | |
geom_histogram() | |
``` | |
Copy your code from above, but adjust it so that there are 50 bins. | |
```{r} | |
ggplot(data = nhanes, | |
mapping = aes(x = weight)) + | |
geom_histogram(bins = 50) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment