Learning is not attained by chance, it must be sought for with ardor and diligence.
- Abigail Adams
Learning is not attained by chance, it must be sought for with ardor and diligence.
We’ll be working through problems together in class and discussing content from your reading assignments. This class may be different from other classes you take or your experiences in classrooms from the past. I prefer to think of myself as your guide on the side instead of the sage on the stage. I’m here to assist you as needed, but I don’t want to be the passer of all knowledge to you. In other words, I’m hoping to create an environment where you develop understanding based on each of your own needs rather than just dictating how and what to think to you.
Why do we still use the less efficient plots, like the side-by-side barplot, the stacked barplot, or even the pie-chart when there are much more effective plots, like the faceted barplot, to use? It just seems weird to me.
geom_bar(position = "dodge")
What does a dodge position?
When playing with the code in Rstudio for chapter 4 i kept getting the error message that “ggplot” is not a package. I then proceeded to look in my packages and found that i have “ggplot2”. Long story short, i still don’t know how to get “ggplot” and was wondering how i would go about doing that?
dataviz-09-21.Rmd
in your LastnameFirstname folderProduce a histogram of the humidity recordings in the weather
data frame with 15 bins, missing values removed, fill with a color of your choosing, and a border color of your choosing.
Describe in a few sentences how this plot is different from the last plot.
Produce the following boxplot:
Install the okcupiddata
package by typing install.packages("okcupiddata")
into your R console.
Load the package via library(okcupiddata)
Load the data via data(profiles)
Produce a barplot of the status
variable
sex
variable in the profiles
data framestatus
variable based on sex
CHALLENGE
drinks
library(dplyr); library(okcupiddata) non_straight <- filter(profiles, orientation != "straight", status != "unknown") ggplot(data = non_straight, aes(x = drinks, fill = sex)) + geom_bar() + facet_wrap(orientation ~ status)