From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

lattice: cloud and wireframe

lattice: cloud and wireframe

- [Instructor] The lattice graphics package provides cloudandWireframe for three variables on one plot. Let's take a look at how that works. Don't forget, with lattice, you have to load the library. So, library(lattice). Now, to demonstrate cloudandWireframe, I've augmented ChickWeight with another variable I've called ascend. And we can take a look at what that looks like here if I type in names of ChickWeight, so you can see that I have weight, Time, chick, Diet, and ascend. And ascend is just the numbers one through the number of rows of ChickWeight on a separate column. So, let's create a cloud graph. To do that I'll type in cloud(), again this is a lattice graphic package, and I'm going to graph weight against Time, and I'm going to add a multiply sign with ascend, which is one of the new columns in ChickWeight. Now, what you'll need to do is reference to the documentation for cloud as to why that star is there.…

Contents