Before we Start
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Introduction to R
Starting with Data
Figure 1
{alt = ‘A 3 by 3 data frame with columns showing numeric, character and logical values.’}
Data Wrangling with dplyr and tidyr
A couple of plots. And making our own functions
Figure 1
Figure 2
Figure 3
Two new things happens here. First, we are using a new way of telling the plot function what relationship we want to visualise. The function notation y~x, tells the boxplot function that we want to visualise y as a function of x. In this case we want to visualise the number of people, as af function of the wall type. Secondly, we use a boxplot. A boxplots shows the distribution of the values on the y-axis. The median value is indicated by the solid bar. The box encapsulates 50% of the observations. Its upper and lower borders represents the interquartile range (IQR). The whiskers on the plot - here only the upper whiskers are shown due to the nature of the data, represents the range of the data. The distance from the upper part of the box, to the whisker is 1.5 times the interquartile range. The dots that we see for muddaub and sunbricks are outliers. Observations that lies so far from the rest of the observations, that we consider them as outliers.