Follow the instructions below to complete the exam. After completeing the exam….
To access the data frame go to:
shorturl.at/bghDZ
Recreate the following plot using what we learned so far. (For this example do not worry about checking for the right data type, in other words, there is no need to check if each data type is factor, character, numeric or logical)
After completing your plot, save the plot as image and paste it in a word document.
In the same word document you pasted your image. Choose 10 of the following arguments and/or functions of R, and write a definition for each, following the example bellow.
barplot( ) # R function that lets you plot a bar graph
data # the data argument inside the barplot() function
takes in a data.frame (or list) from which the
variables in formula should be taken.
Choose 10 out of the following options:
c( )
xlab
ylab
col
name
barplot( )
boxplot( )
table( )
col.axis
names
names.arg
border
main
cex.axis
cex.main
For extra credit, change the sizes of the tile, axis, and labels, to 2.5, 2, 1.5, respectively. Change the borders to “red” and “green”. (hint: look at the last plot)