Check that you have the bigvis package installed.
r
## Should run error free
library("bigvis")
data("movies", package = "bigvis")
Use condense and bin to plot the movie lengths. Try varying the width argument
in the bin function.
smooth function.ggplot2 package
r
library("ggplot2")
Use autoplot on the binned data. Experiment with peel.x = condense(bin(movies$length, width = 1)) plot(x) sm = smooth(x, h = 5 / 100) lines(sm[, 1], sm[, 2], col = 2) autoplot(x) last_plot() %+% peel(x)
Check that you have the tabplot package installed.
r
## Should run with no errors
library("tabplot")
Reproduce the plot in the notes
r
tableplot(movies[, 3:5])
Use head(movies[,3:5]) to examine the first few rows of the data. What do the plots
mean?
Add the argument sortCol=3 to the above tableplot command. What does this argument
do?
Run the following command
r
tableplot(movies[, 3:10])
What do the graphs mean?
Did you know that we also run on-site courses?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.