June 2016
Beginner to intermediate
1783 pages
71h 22m
English
In this recipe, we will learn how to make dot charts with grouped variables. Dot charts are often preferred to bar charts because they are less cluttered and convey the same information more clearly with less ink.
We will continue using the citysales.csv example dataset in this recipe. Make sure that you have loaded it into R and type in the recipe at the R prompt. You might also want to save the recipe as a script so that you can easily run it again later. We will need the reshape package to change the structure of the dataset. So, let's make sure we have it installed and loaded:
install.packages("reshape")
library(reshape)We will first apply the melt() function to the citysales ...
Read now
Unlock full access