课程: R for Data Science: Lunch Break Lessons

免费学习该课程!

今天就开通帐号,24,100 门业界名师课程任您挑!

lattice: panels

lattice: panels

- So we've discussed lattice graphics quite in depth, but there's a couple of more things that we should talk about. One of them is using panels. And panels are what controls how information is actually plotted in a lattice graph. So for example, I've created a splom graph here, and you'll notice that in this code, the first thing I do is call up the lattice library. So let's go ahead and run that. And then in line 4 I've got a very simple splom graph. And let's take a look at what that looks like. Now I can change that by changing the panel arguments. So let's go ahead and insert that. I'll put in panel. Then I'm going to select panel.smoothscatter. And you'll notice that there are several panels that start to appear and I'll show you how all of these panels relate to different graphs. But for right now, I'm going to select the smoothscatter panel. Now it also adds a parentheses, I don't need that. So I removed…

内容