Join Barton Poulson for an in-depth discussion in this video Creating scatterplots, part of Up and Running with R.
- View Offline
When you're looking at associations in your data, if you want to look at how two…quantitative variables are associated with each other, the most common approach…is to create a scatterplot.…R gives you some interesting options on how to create scatterplots, and look at…what you have in terms of associations in your data.…For this one, I'm going to be using the Google correlate data that I used in the last movie.…I'm going to load it by running line 6.…I'll create a data frame called Google by reading the csv,…google_correlate.csv, that has a header.…
There I have 51 observations.…There's one line for each state, and D.C. We're going to look at the names of…the variables that are in that data set.…We can look at the structure too if we want, just to get an idea of what things look like.…I'm going to make this bigger for just a moment.…Okay, that's pretty busy.…I'm going to just clear it out for right now.…What I want to ask is whether there's an association between the percentage of…people in the state with college degrees, and interest in data visualization as a…
The course continues with examples on how to create charts and plots, check statistical assumptions and the reliability of your data, look for data outliers, and use other data analysis tools. Finally, learn how to get charts and tables out of R and share your results with presentations and web pages.
- What is R?
- Installing R
- Creating bar character for categorical variables
- Building histograms
- Calculating frequencies and descriptives
- Computing new variables
- Creating scatterplots
- Comparing means